Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

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 61.135.181.175.

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

share|improve this question

migrated from stackoverflow.com Jun 3 '10 at 9:43

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

1 Answer 1

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

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.