I have recently started network Programming for Linux (though I use windows, I believe it's still compatible via cygwin).
Anyways, I have a small code where I pass in the hostname and the program returns the IP addresses for this host. It works fine with common websites like google, yahoo etc.
I can also get my own PC's IP addresses by passing in MYPC-PC as the argument. However, if I try to resolve any other computer's name that is connected to the SAME network as my PC, I get the following error:
"Non-recoverable failure in name resolution."
I never had this problem in C#, so I don't know how to work my way around this problem. I hope someone can help me out.
Thanks in advance