3
2
When I ping my own machine I get an IPv6 address:
Reply from fe80::1004:p8f0:9e40:a42c%10: time<1ms
Reply from fe80::1004:p8f0:9e40:a42c%10: time<1ms
I used to get the IPv4 address (eg. 192.168.1.5) from the router.
Why has it changed?
3
2
When I ping my own machine I get an IPv6 address:
Reply from fe80::1004:p8f0:9e40:a42c%10: time<1ms
Reply from fe80::1004:p8f0:9e40:a42c%10: time<1ms
I used to get the IPv4 address (eg. 192.168.1.5) from the router.
Why has it changed?
0
My problem was solved by running ipconfig /flushdns
from the command prompt.
@ekaj: or link to the serverfault question, as the answer on there is what helps the OP. – Terry – 2012-05-02T12:34:12.307
7
This could be due to caching or the DNS. On a Windows Server 2008 issue on Server Fault they suggest:
If they are resolving to IPv6 they might be cached or have ipv6 addresses registered in DNS.
You can also add a -4 to the ping:
ping example.com -4
When I use the -4
I get the IPv4 address. Any reason it is defaulting to IPv6 instead of IPv4? – CJ7 – 2012-05-02T11:55:05.587
1@CraigJ: On Windows, IPv6 is always preferred over IPv4. – Nick Whaley – 2012-05-05T19:14:48.087
1What is your machine? – Terry – 2012-05-02T11:43:49.487
@djerry: just a Win7 Pro machine connected wirelessly to the router. – CJ7 – 2012-05-02T11:52:57.290
2
Relevant: http://superuser.com/questions/285599/pinging-localhost-versus-pinging-127-0-0-1
– Der Hochstapler – 2012-05-02T12:04:09.460Are you pinging the machine by name or IP? – Zoredache – 2012-05-02T16:58:26.357
@CraigJ: djerry is asked what you are pinging. The address you get is determined by the name resolution method. If it is
localhost
, then it is likely to return IPv6 every time. – Nick Whaley – 2012-05-05T19:13:46.793@NickWhaley: I am pinging my machine's Windows computer name or IP address. Both produce these results. If you have downvoted the question please reverse it. I don't see what is wrong with the question. – CJ7 – 2012-05-06T02:20:33.003
@CraigJ, ping will ping whatever it is given. This question has nothing to do with ping and has everything to do with how the given name is resolved. Please tell us what name is being resolved incorrectly or in an unexpected way. – Nick Whaley – 2012-05-06T05:29:44.473