Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I've always used the tracert and ping commands to obtain the IPV4 address of my computers. Now I seem unable to do so:

C:\>tracert win7x64

Tracing route to WIN7X64 [fe80::f44f:fb88:3026:4ecc%53] over a maximum of 30 hops:

  1    <1 ms    <1 ms    <1 ms  WIN7X64 [fe80::f44f:fb88:3026:4ecc]

Trace complete.

C:\>ping win7x64

Pinging WIN7X64 [fe80::f44f:fb88:3026:4ecc%53] with 32 bytes of data:
Reply from fe80::f44f:fb88:3026:4ecc%53: time<1ms
Reply from fe80::f44f:fb88:3026:4ecc%53: time<1ms
Reply from fe80::f44f:fb88:3026:4ecc%53: time<1ms
Reply from fe80::f44f:fb88:3026:4ecc%53: time<1ms

Ping statistics for fe80::f44f:fb88:3026:4ecc%53:
    Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
    Minimum = 0ms, Maximum = 0ms, Average = 0ms

Is there a windows command to obtain the IPV4 address of one computer in the network by knowing its name only? Thanks!

share|improve this question

1 Answer 1

up vote 4 down vote accepted

You can do ping -4 win7x64 to get the IPv4 ip address.

For traceroute you can use tracert -4 win7x64.

From ping /?:

Usage: ping [-t] [-a] [-n count] [-l size] [-f] [-i TTL] [-v TOS]
            [-r count] [-s count] [[-j host-list] | [-k host-list]]
            [-w timeout] [-R] [-S srcaddr] [-4] [-6] target_name
Options:
    -4             Force using IPv4.

And from tracert /?:

Usage: tracert [-d] [-h maximum_hops] [-j host-list] [-w timeout]
               [-R] [-S srcaddr] [-4] [-6] target_name
Options:
    -4                 Force using IPv4.
share|improve this answer
    
Thanks! that's exactly what I was looking for. –  safejrz Dec 27 '13 at 14:43

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.