Phil for Humanity Phil for Humanity
A Guide for the Survival of Humankind and Helping the World, Society, and Yourself.

Windows Support: Finding Hostname from an IP Address

Have you ever needed to know the host name of a computer when you only had the IP address?

If so, you may have assumed that the "ping" command would give you this information. However, it does not. Instead, you will have to use the Windows "nbtstat" command. Here is an example of this command in action:

 C:\>nbtstat -a IP_ADDRESS
 Local Area Connection:
 Node IpAddress: [IP_ADDRESS] Scope Id: []
            NetBIOS Remote Machine Name Table
        Name               Type         Status
     HOST_NAME      <00>  UNIQUE      Registered
     DS             <00>  GROUP       Registered
     HOST_NAME      <20>  UNIQUE      Registered
     MAC Address = ##-##-##-##-##-##
 Node IpAddress: [] Scope Id: []

by Phil for Humanity
on 04/29/2009

Related Articles
 » Windows Support: Opening a DOS Prompt
 » Command Loop
 » Windows Support: Finding Remote Logged On Users