Ask Ubuntu is a question and answer site for Ubuntu users and developers. 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 cannot ping my Ubuntu box from Windows. I have Samba installed and I have checked iptables and NetBIOS ports are not blocked. smbd and nmbd are both running.

I'm running Ubuntu 11.10 Server. I was able to set this up fine and getting working on my Ubuntu 11.10 Desktop.

I've looked at several other posts, but none of them fix my problem. Any ideas?

share|improve this question
The computers are on the same subnet. – Charles Apr 14 '12 at 2:50
the computers are connected through a standard gigabit switch. They are still on the same subnet, but would this prevent broadcast packets from being forwarded? – Charles Apr 14 '12 at 5:49
In what way does it not work, what error do you get? – jelmer Apr 14 '12 at 23:35
Ping request could not find host my_hostname. Please check the name and try again. – Charles Apr 15 '12 at 3:35

Ubuntu doesn't support looking up hosts by NetBIOS name using NSS. In other words, you can't do ping netbiosname except if you use nss_wins.

If you have a WINS server you can set up nss_wins and use that to resolve NetBIOS names.

Alternatively, you can use something like Avahi or DNS.

share|improve this answer
Samba includes NetBIOS. Install Samba, get NetBIOS. The service is called nmbd. It works on my Ubuntu desktop. I can ping it from other machines on the same subnet. For some reason it's not working with the two Ubuntu server machines I setup. – Charles Apr 16 '12 at 2:05
I would be willing to go the WINS route, but the machines are connected to a network with Active Directory. So they can't be added to the DNS there. And the WINS server can't be on the Ubuntu machines because they have dynamic IPs. – Charles Apr 16 '12 at 2:06
nmbd in Samba does server-side NetBIOS support and browsing; it doesn't integrate into the NSS host name look ups that are part of libc. – jelmer Apr 17 '12 at 20:31
If you have Active Directory then I doubt NetBIOS would work at all - instead, you probably just want to use the DNS server from the AD domain. – jelmer Apr 17 '12 at 20:33
Cant use the AD. This works on an Ubuntu desktop installation on the same subnet. I'm starting to wonder if this has something to do with broadcast packets not being forwarded through the switch. – Charles Apr 18 '12 at 18:56

If your ubuntu server has a fixed IP address, you can try to put the address in hosts file on windows machines. I never figured out how NetBIOS work. So I just use fixed IP + hosts files in my LAN.

share|improve this answer
DHCP and dynamic IPs. I definitely don't want to use hosts file. – Charles Apr 14 '12 at 3:19

Your Answer


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

Not the answer you're looking for? Browse other questions tagged or ask your own question.