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. from the router.

Why has it changed?

  • 1
    What is your machine? – Terry May 2 '12 at 11:43
  • @djerry: just a Win7 Pro machine connected wirelessly to the router. – CJ7 May 2 '12 at 11:52
  • 2
    Relevant: superuser.com/questions/285599/… – Der Hochstapler May 2 '12 at 12:04
  • Are you pinging the machine by name or IP? – Zoredache May 2 '12 at 16:58
  • @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 May 5 '12 at 19:13

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

| improve this answer | |
  • When I use the -4 I get the IPv4 address. Any reason it is defaulting to IPv6 instead of IPv4? – CJ7 May 2 '12 at 11:55
  • 1
    @CraigJ: On Windows, IPv6 is always preferred over IPv4. – Nick Whaley May 5 '12 at 19:14

My problem was solved by running ipconfig /flushdns from the command prompt.

| improve this answer | |
  • @ekaj: or link to the serverfault question, as the answer on there is what helps the OP. – Terry May 2 '12 at 12:34

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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