Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have three machines in my home network connected by a wireless router. One is a server installed with Linux at Another is a ThinkPad with MS Windows XP at The last one is a MacBook Pro with Mac OS X 10.6.3 at

When I ping the Linux Server from ThinkPad (MS Windows XP) I can get the correct IP address, but when I ping it from Mac I get the global address of my router, like

Why does this happen? And how do I get same ping result on Mac and Windows?

share|improve this question

migrated from Jun 3 '10 at 9:43

This question came from our site for professional and enthusiast programmers.

It is possible that your Linux box announces its name on the local network via NetBIOS's Windows Internet Name Service (WINS), which is primarily used by Windows machines.

This can happen if, for instance, you are running Samba on the Linux server. Your Mac would not be able to see the NetBIOS name, and uses DNS instead. If you don't have a DNS server locally, this will result in a lookup at a public DNS, which will probably be set to the publically reachable router address (depending on what you set it to). If this is your situation, the easiest solution is probably to install a proxy DNS, DHCP combo on your router, like dnsmasq. This will work 'automatically' if your Linux server gets its IP address via DHCP on your router. If not, you will need to configure entries manually. Dnsmasq can do this too, but there are other options as well, like BIND.

share|improve this answer

You must log in to answer this question.