Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I need to know the ip address of another machine in a lan network.

What is the Windows command for getting ip address from machine name and vice versa?

share|improve this question
up vote 37 down vote accepted

A machine with machine name "accounting" and ip "192.168.1.95"

IP -> Machine Name:

tracert 192.168.1.95

or

NBTSTAT  -a 192.168.1.95

Machine Name -> IP

nslookup accounting

or

ping accounting
share|improve this answer

in window 7 and later versions. to find ipv4 ip by hostname you can try following methods.

For ipv4 (192.168.1.2):

ping hostname -4

For ipv6 (0000:0000:0000:0000:0000):

ping hostname -6
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.