Get Computer Name from IP Address and vise versa in CMD

We can get computer name/machine name from ip address using either ping command or tracert and we can get ip address from computer name using ping command and nslookup command.

Get Computer Name from IP Address in Command Prompt

You can get machine name from ip address using ping command by passing the argument -a.

ping -a 212.168.1.52

You can also convert ip address to computer name using tracert command

tracert 212.168.1.52
Get Computer Name from IP Address and vise versa in CMD

Get IP Address from Computer Name in Command Window

You can get ip address of a computer name by using ping command or nslookup command

nslookup  your-pc-name

-or-

ping -your-pc-name
Advertisement

1 thought on “Get Computer Name from IP Address and vise versa in CMD”

  1. Informative blog useful for those who are looking for some other command to trace the location of any ip address ..I usually trace the location of an ip address through sites like Ip-Details.com they are rendering ip search tool which will display details like ip location ,ISP address ,country and so on but i can't trace exact home address of any person from ip address ..I can trace only ISP details from ip address ..

    Reply

Leave a Comment