Determining The Computer Name Associated With An IP Address (Windows 2k/XP/2003)
- 18
- Add a Comment
Finding the IP address assigned to a computer is very simple. All you have to do is open the command prompt and use the IPCONFIG command. If you want to find the IP address associated with a specific computer name, you can use the NBTSTAT command. The syntax for doing so is as follows:
NBTSTAT -a <computername>
What if you want to find the computer name associated with a specific IP address? The solution is simple. You can once again find the information you are looking for using the NBTSTAT command, only this time with a different switch. Instead of using -a, you will use -A and specify an IP address as shown below:
NBTSTAT -A <ipaddress>
The results will tell you the computer name that is currently associated with the IP address you have specified.

18 Comments
david.Zhu
January 29th, 2007
at 9:56pm
Thank you for your information! It’s very helpful!
Ken
June 4th, 2007
at 10:00pm
great information, I really need it this for work!
nestor
September 20th, 2007
at 7:16am
Finding the IP address assigned to a computer with the following syntax does not give me the IP address.
NBTSTAT -a
I am getting the computer’s name - Why?
stuart
October 3rd, 2007
at 6:39am
Just found this page - very helpful. Thank you :)
Martin
November 11th, 2007
at 3:44pm
this didn’t work for me.
I used the following syntax to obtain the IP address from the computer name:
NBTSTAT -a
I actually got the MAC Address but did not get the IP address. There was a “Node IP Address” referenced but that was my IP address.
pankaj
December 12th, 2007
at 5:29am
i used some command .. realy thaks.. it is very greatfull help..
Iain
January 14th, 2008
at 4:15am
Thanks for the info, really helpful. For those who are trying to resolve an ip from a computer name, this command will only list the name table for the computer, NOT the ip address. However it is painfully easy to get the ip for a computer with only its name - ping it.
Viraj Perera
February 4th, 2008
at 10:54pm
Thanks lot ! This is really helpful.
Stephan S
February 13th, 2008
at 3:53am
Indeed very helpful. But we have more ip ranges on our network. I’m in the 16.XX range and the PC i want to have the from is in the 17.XX range. Anyone who know how that works
alas32
February 13th, 2008
at 5:16am
The command is “nbtstat -a NAME”, not just “nbtstat -a”
Stephen Chettiar
February 25th, 2008
at 2:22am
fantastic!
NBTSTAT command is exaclty what i was looking for.
thanks a ton.
Vish
February 27th, 2008
at 7:47am
Great find! excellent resource!
ABDO HASSAN ABDO
March 6th, 2008
at 10:48am
How Can I Get into Another Comp. I Got IP And Mac Add. And Evry Detail But I Wanna Get onto this Comp. Becuse They Get my Speedtuche.lan And I get
They IP + MAC + And Name pc But Icant Get Inside it
Help
Venkatesh
March 26th, 2008
at 8:07am
This info was very much helpful….Thanks
wail
June 25th, 2008
at 7:24am
that is cool ., thank you for the good information ,, it work fine ,, shokran –>thank u
Aks
July 15th, 2008
at 4:57am
nbtstat doesnt give me the IP address from computername .. but works great for getting the computername from ip address.. To get the ip address simply ping with computername
ping
This will give the IP of the target
Anil
September 24th, 2008
at 10:38pm
Thanks Brother
Shawn
September 26th, 2008
at 11:53am
Thanx a lot