Thread: GetHostByAddr fails to get NetBios Name for A Mac Computer

  1. #1
    Codebot
    Join Date
    Jun 2004
    Location
    Toronto
    Posts
    195

    GetHostByAddr fails to get NetBios Name for A Mac Computer

    I'm using the example given by Microsoft here to retrieve NetBios names for the PCs on the network. However, one computer in particular, a Mac, is not giving out it's NetBios name and the GetHostByAddr function returns error WSANO_DATA (11004).

    Can anyone shed some light on this problem? Is it a Mac issue (incorrect settings)?

    EDIT: Bonjour is not installed on the Windows machines.

    EDIT2: Ah I found the problem. The Macintosh machine did not have SMB broadcasting enabled. Under System Preferences>Sharing>Options. Case Closed.
    Last edited by Mastadex; 10-02-2009 at 10:40 AM.
    Founder and avid member of the Internationsl Typo Associateion

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Compiling a program for Mac OSX from a windows computer
    By Jedi Nescioquis in forum Windows Programming
    Replies: 1
    Last Post: 02-13-2009, 03:06 PM
  2. some odd computer problems
    By DavidP in forum Tech Board
    Replies: 14
    Last Post: 03-31-2008, 06:25 AM
  3. Replies: 34
    Last Post: 02-26-2006, 01:16 PM
  4. Tabbed Windows with MDI?
    By willc0de4food in forum Windows Programming
    Replies: 25
    Last Post: 05-19-2005, 10:58 PM
  5. Computer will not boot.
    By RealityFusion in forum Tech Board
    Replies: 25
    Last Post: 09-10-2004, 04:05 PM