15

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)

fixer1234
  • 27,064
  • 61
  • 75
  • 116
ZEE
  • 918
  • 5
  • 19
  • 32

3 Answers3

22

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

DavidPostill
  • 153,128
  • 77
  • 353
  • 394
6

ping -a xxx.xxx.xxx.xxx

This will try WINS and then DNS.

The NSLOOKUP command does similar, but only via DNS.

zain.ali
  • 635
  • 1
  • 6
  • 21
  • thanks,,, but sadly ping -a 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
0

From a Windows system :

nbtstat -A x.x.x.x

From Linux a Linux :

nmblookup -A x.x.x.x

SebMa
  • 1,573
  • 2
  • 19
  • 25