Link to home
Start Free TrialLog in
Avatar of brgdotnet
brgdotnetFlag for United States of America

asked on

How to find the name of a server from the IP

My company has a server which I remote into. Basically I type mstsc and then enter the IP and proceed to log into the server.
So how do I find the name of that server I am logging into based upon the IP ?
ASKER CERTIFIED SOLUTION
Avatar of Lee W, MVP
Lee W, MVP
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
You could open a command prompt on your computer and type
ping -a www.xxx.yyy.zzz
where www.xxx.yyy.zzz is the IP address of the server.
You should then do the following
ping ServerName
where ServerName is the name the first ping command responds with.
This should respond with the IP address you used in the first ping command.
This ensures both the forward and reverse DNS names are correctly configured.
Avatar of brgdotnet

ASKER

Thank you. Hey if I type nslookup or hostname it will show me a server name, and an additional ip address. But the ip address shown is different than the one I used to remote into the server ? Why is that?
It is possible the server in question has more than one IP address assigned to it.
If you're remoted to the server, from a command prompt, you can type
ipconfig /all
which will show you the IPv4 and IPv6 IP addresses assigned to all physical and virtual network interfaces.
nbtstat -a [ipaddress]