12

How can I find the NetBIOS/WINS name of a PC in my LAN

In suma: I have the IP of a machine in my LAN I want to get the name of the machine (if it has one)

20

How can I find the NetBIOS/WINS name of a PC

You can use nbtstat

Example:

nbtstat -A x.x.x.x

Syntax

...

By IP address

  NBTSTAT -A IP_address [options] [interval]

Key

...

-A (Adapter status) List the remote machine's name table given its IP address

Source NBTSTAT.exe - Display protocol statistics and current TCP/IP connections using NBT (NetBIOS over TCP/IP)


Further reading

1
  • 3
    On Linux, it's smbutil -v status -ae IP.
    – kenorb
    Mar 10 '18 at 9:54
6

ping -a xxx.xxx.xxx.xxx

This will try WINS and then DNS.

The NSLOOKUP command does similar, but only via DNS.

4
  • thanks,,, but sadly ping -a <ip> is not reveling the netBIOS name (and I know the name exists (if i ping the pc by name works ok)
    – ZEE
    Jun 22 '15 at 15:38
  • No DNS in this LAN (by option)
    – ZEE
    Jun 22 '15 at 15:39
  • 1
    Are you happy to download a third party tool to achieve your goal?
    – zain.ali
    Jun 22 '15 at 15:43
  • I use several 3rd party tools... like netscan, to achieve this... I was wondering if this could be done with OS tools... THX!
    – ZEE
    Jun 23 '15 at 18:32

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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