C Board  

Go Back   C Board > General Programming Boards > Networking/Device Communication

Reply
 
LinkBack Thread Tools Display Modes
Old 10-02-2009, 09:49 AM   #1
Codebot
 
Join Date: Jun 2004
Location: Toronto
Posts: 194
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.
__________________
Founder and avid member of the Internationsl Typo Associateion

Last edited by Mastadex; 10-02-2009 at 10:40 AM.
Mastadex is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Compiling a program for Mac OSX from a windows computer Jedi Nescioquis Windows Programming 1 02-13-2009 03:06 PM
some odd computer problems DavidP Tech Board 14 03-31-2008 06:25 AM
How do I get a computer to detect its own name and hardware? eddwills C++ Programming 34 02-26-2006 01:16 PM
Tabbed Windows with MDI? willc0de4food Windows Programming 25 05-19-2005 10:58 PM
Computer will not boot. RealityFusion Tech Board 25 09-10-2004 04:05 PM


All times are GMT -6. The time now is 01:24 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.0 RC2

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22