1

How can I check an ip address of a computer through CMD which is on the same LAN as I am without any third party software?

I'm fully aware of pinging the PC name, but what would this problem below indicate?

C:\Users\Storage>ping malan-pc

Pinging Malan-PC [fe80::5cba:e518:d8df:ac30%12] with 32 bytes of data:
Reply from fe80::5cba:e518:d8df:ac30%12: time<1ms
Reply from fe80::5cba:e518:d8df:ac30%12: time<1ms
Reply from fe80::5cba:e518:d8df:ac30%12: time<1ms
Reply from fe80::5cba:e518:d8df:ac30%12: time<1ms

Ping statistics for fe80::5cba:e518:d8df:ac30%12:
    Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
    Minimum = 0ms, Maximum = 0ms, Average = 0ms
BaasGZA
  • 23
  • 3
  • 1
    the address is not a MAC address but an ipv6 one. Try to force the ping on ipv4 (`ping hostname -4`) – petrus Aug 02 '12 at 17:28
  • Drop the [junk after the % sign](http://superuser.com/questions/99746/why-is-there-a-in-the-ipv6-address) and you have a perfectly valid IP address which you can use to connect to the remote system. IPv4 is going away sooner or later, so you may as well get used to IPv6 now. :) – Michael Hampton Aug 03 '12 at 06:06

2 Answers2

4

You have the IPv6 address. If you want the IPv4 address you need add -4 to the ping command.

ping -4 malan-pc
ablackhat
  • 156
  • 2
1

This question really isn't for ServerFault, but I'll answer anyway

If DNS is working properly then simply "ping" the computer and look at the resolved IP.

I.e.

ping computername

And it should return something like

Pinging computername [172.16.0.1] with 32 bytes of data:
Dan
  • 1,158
  • 7
  • 14
  • I'm fully aware of what you stated above. See the following and please inform me of what the problem can be. – BaasGZA Aug 02 '12 at 17:22
  • The OP actually followed your advice, but didn't then understand the output it gave him. (Since it returned an IPV6 address) –  Aug 02 '12 at 18:45