3

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?

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

2 Answers 2

8

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

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

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

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

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .