Determining The Computer Name Associated With An IP Address (Windows 2k/XP/2003)
- 39
- Add a Comment
- No Related Post
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.

39 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
LIJU
October 16th, 2008
at 2:41am
Really Helpfull
Latika
November 4th, 2008
at 3:58am
This is gr8 ! Thanks
Andra
November 5th, 2008
at 3:24am
Very helpful
dd
November 11th, 2008
at 11:47am
There’s a difference between:
NBTSTAT -A
and
NBTSTAT -a
Use A.
Parag
November 25th, 2008
at 6:05pm
Great! it’s really helpful.
Phaneendranatha
November 27th, 2008
at 9:40pm
Can i know remote system name using remote system IP Address????
TENDUL001
December 3rd, 2008
at 8:21am
This helps me to find out the person who is accesing my computer without my permission
Wajahat Khalid
January 1st, 2009
at 11:02pm
This really helped me in getting Computer name on our office LAN against the ip address that i wanted to locate.
silber1
February 13th, 2009
at 10:57pm
Great help!
Thanks
Xain
May 12th, 2009
at 5:13am
i use it command it worked ,.. i m Happy
hwang
May 28th, 2009
at 7:54pm
when i log it says
hwang
May 28th, 2009
at 7:55pm
Failed to access NetBT driver — NetBT may not be loaded
any idea?
Tamer
May 30th, 2009
at 9:52am
to know IP address when u know the exact hostname ex.: XXX
(as someone said before)
>Ping XXX
Pinging XXX [THE IP Address appear here] with 32 bytes of data:
Reply from THE IP Address appear here TOO: bytes=32 time<1ms TTL=128
Ethan
June 9th, 2009
at 6:14am
Thanks abunch mate……..this is a very helpful command to know !!
Great work !
Mance
June 12th, 2009
at 11:56pm
i like to use Ipconfig/all
Bhaskar
September 7th, 2009
at 11:42pm
Thanks it works fine with Window OS hosts..
it does not work to obtain the computer name for any remote mechine with other Operating system than windows like Linus or Unix etc..
Please let me know if any body knows the command to obtain the computer name of remote mechine with LINUX OS from the Windows OS mechine…
Rahul
September 20th, 2009
at 12:03am
its very helpful
Viren
September 24th, 2009
at 1:22am
Thank , very helpfull
mHondz
October 6th, 2009
at 12:53am
I use NBTSTAT -a [RemoteName] to get the IP address but the result is Host not found. But when I use NBTSTAT -A [IP address] it shows the result succesfully.
Any idea about Host not found i got?
mHondz
October 6th, 2009
at 1:02am
Note: For me NBTSTAT -a [RemoteName] only works with the same IP segment.
@ Aks & Tamer
For me It only applies with the same IP segment.
sivakumarv
October 19th, 2009
at 6:07am
I have used this NBTSTAT command, for few of the ip’s i am getting the computer name but not to every ip address in my network. Can any body tell the reason. here is the out put i got:
——————————————————————–
Local area Connection:
Node IP address:[172.16.75.62] Scope Id : [ ]
Host Not Found
——————————————————————–
My IP address is 172.16.75.62 and i requested is 172.16.85.238 with in my local