E-Mail:

Determining The Computer Name Associated With An IP Address (Windows 2k/XP/2003)

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

Thank you for your information! It’s very helpful!

great information, I really need it this for work!

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?

Just found this page - very helpful. Thank you :)

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.

i used some command .. realy thaks.. it is very greatfull help..

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.

Thanks lot ! This is really helpful.

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

The command is “nbtstat -a NAME”, not just “nbtstat -a”

fantastic!
NBTSTAT command is exaclty what i was looking for.
thanks a ton.

Great find! excellent resource!

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

This info was very much helpful….Thanks

that is cool ., thank you for the good information ,, it work fine ,, shokran –>thank u

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

Thanks Brother

What Do You Think?

 

Want to Start a Blog Here for Free?

Are you an expert in one subject or another? If your goal is to help others and dispense hard-earned information back to the community, stake a claim on your very own Lockergnome blog today! You can write about anything - no matter the topic. Sign-up to start blogging!

Favorite - Oct 10, 2008

Scour

Download, Freeware - Oct 9, 2008

CurrPorts v1.51

Download, Freeware - Oct 6, 2008

AudioGrail v6.13.2.158

Download, Freeware - Oct 3, 2008

SniffPass v1.07

87 queries / 6.691 seconds.