Sunday, September 12, 2010

NMBLOOKUP: Looking up IP address of SMB and NETBIOS names on OSX

How to Look up the IP address of SMB and NETBIOS names on OSX.

You know how it is. In your browse list you see a whole bunch of machines, and there's one you want to connect to by IP. On a windows machine you would just do

    ping machine

and it would call the local NETBIOS or WINS database.

No such luck on Macs. What you can do instead is to use NMBLOOKUP

    $ NMBLOOKUP machine
    querying machine on 192.168.0.255
    192.168.0.17 machine

3 comments:

Anonymous said...

hi!

Sorry (for my English too),
on OS X sometimes, at thestartup, I get a nmblookup "Finder via nmblookup (user)" , estabilished by "/usr/bin/nmblookup" that wants to connect to a specific IP adddress on port xx UDP (netbios-ns).

Little-snitch blocks it and I lose the internet connection. After that I need to use an utility like Itweax or Onyx and restart the Mac, to restore the connection...

I'm a noob, wtf is this nmblookup, and what I must to do with it? Can mean a hacking attempt?


Please help me, thanks in advance.


Andrew

Anonymous said...

and after that, other applications, like textedit, wants to connect to the same external IP by nmblookup, but little-snitch ask me what to do, and the connection is lost.
Why TextEdit want to connect to this external IP?

Thanks a lot.

Andrew

dora cute said...

Thanks for your useful information.I have checked my external ip address from this site Ip-details.com