Get IP address from Samba share/NetBIOS name

Suppose you’ve got a NetBIOS address of a Samba share like //SERVER/MyShare and you’d like to know the IP address of the server with the NetBIOS name SERVER. On Linux, you can use Samba’s nmblookup like so:

  1. nmblookup -I SERVER
  2. querying SERVER on 192.168.0.255
  3. 192.168.0.213 SERVER<00>

In our example above, the IP address of the machine with the NetBIOS name SERVER turns out to be 192.168.0.213.

Tags: , , ,

Shameless plug: If this post was useful to you, please consider buying yourself something from one of my Amazon stores: US store, UK store, FR store, DE store, CA store. If you're not into Amazon, why not donate something to GNOME, Mozilla or Wikipedia? Thank you!

Leave a Reply