We help IT Professionals succeed at work.

How do I ping something by it's IP to get more information about the device such as it's name?

Last Modified: 2008-04-24
If you know the name of a PC on your network, such as "ShippingPC1", you can go to start>run>cmd and then type in "ping shippingpc1" and you will see "reply from".  However, if you ping "", you will receive "reply from" not "reply from shippingpc1".  Is there any way that I can ping something by it's IP to get it's name on the network?
Watch Question


It doesn't have to be within command prompt.  If anyone knows of any utility that I could use for this that would be great too.
"ping /a" will give you the following

> ping /a

Pinging cb13-01 [] with 32 bytes of data:

Reply from bytes=32 time=1ms TTL=128
Reply from bytes=32 time<1ms TTL=128

This one is on us!
(Get your first solution completely free - no credit card required)
NBTSTAT will do what you want:
From the command prompt type:

nbtstat -a

This should find what you're after.



"ping /a" will give you the following

> ping /a

Pinging cb13-01 [] with 32 bytes of data:

Reply from bytes=32 time=1ms TTL=128
Reply from bytes=32 time<1ms TTL=128

This is what I get:

ping /a

pinging with 32 bytes of data

This is the same as if I just typed in "ping"


If you just wanted to do a reverse DNS lookup, then all you would need would be:

> nslookup <ipaddress>

Both of these methods will only work if reverse dns is configred correctly, particuarly in dns domains that make heavy use of DHCP you may have two reverse DNS records for one IP address.

I get this:

Server: (our authentication server).goldlinecontrols.com
Address: (our server IP for above server)

*** (our auth. server).goldlinecontrols.com can't find


After the ".goldlinecontrols.com can't find"  I thought maybe the device had become unplugged or something (I suspect this device to be a switch or something) so I just did a regular "ping" and I got a reply still.


I just tried another IP address (.35) which is one that I know is a PC and the ping /a worked and so did the nslookup.  So I guess if the device has an IP but isn't a PC (print server, switch, etc.) then the ping /a, nslookup and nbtstat will work.  I am all set for the question which I asked but I will now have to research how to find out more info on a device if it is a printer server, etc.


For the record, all 3 suggestions will work for anyone else who has the same problem.  I accepted the suggestion by "RichardSlater" because he was the first to respond with a suggestion that worked.  Both of Richard's suggestions worked, but I chose his second one because it provided the quickest results within the DOS prompt (I didn't have to wait for "reply from..." like you do if you do a regular PING command).  Thank you to all who helped.

Gain unlimited access to on-demand training courses with an Experts Exchange subscription.

Get Access
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Empower Your Career
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE

Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Unlock the solution to this question.
Join our community and discover your potential

Experts Exchange is the only place where you can interact directly with leading experts in the technology field. Become a member today and access the collective knowledge of thousands of technology experts.

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.


Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.