Quick Tip – Resolve NetBIOS Names to IP Addresses

24 October, 2007 (12:54) | mac, quick tip, windows

Sometimes I need to know the IP address of a specific Windows computer on my local network.  OS X doesn’t appear to automatically resolve a NetBIOS name to an IP address when using the ping command from the Terminal.  So, instead, you can use nmblookup.

<!--

Code highlighting produced by Actipro CodeHighlighter (freeware) http://www.CodeHighlighter.com/

-->ryan@Augustus~$ nmblookup vista-mce querying vista-mce on 192.168.1.255 192.168.1.108 vista-mce<00>

In the example above, "vista-mce" is the NetBIOS name of the computer I want the IP address for.  There a number of options for nmblookup that you may need depending on your network.  Check the man page for more details.

Write a comment