Network Commands

  • Thread starter Thread starter David Harvard
  • Start date Start date
D

David Harvard

Hello,

Is there a way to check the computer name from an ip
address. Like typing some command and getting the computer
name of that ip address through CMD.

Also sometimes net send says message alias not found on
network. What does this means.

Detailed information on this is much appreciated.


Thanks & Regards
David Harvard
 
David Harvard said:
Hello,

Is there a way to check the computer name from an ip
address. Like typing some command and getting the computer
name of that ip address through CMD.

Use it like this:
GetHostByIP 127.0.0.1

::GetHostByIP.cmd
@echo off
for /f "tokens=1,2" %%a in ('ping -a %1 ^| findstr Pinging') do echo %%b
 
David said:
Hello,

Is there a way to check the computer name from an ip
address. Like typing some command and getting the computer
name of that ip address through CMD.
Hi

nslookup.exe xxx.xxx.xxx.xxx
 
You can also do:

ping -a xxx.xxx.xxx.xxx which translates the ip to
provide you actual name.
 
Back
Top