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.

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?

share|improve this question
1  
What is your machine? –  Djerry 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/… –  Oliver Salzburg 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
show 2 more comments

2 Answers

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

share|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
    
@CraigJ: On Windows, IPv6 is always preferred over IPv4. –  Nick Whaley May 5 '12 at 19:14
add comment
up vote 0 down vote accepted

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

share|improve this answer
    
@ekaj: it only allows acceptance of answer after two days. –  CJ7 May 2 '12 at 12:29
    
@ekaj: or link to the serverfault question, as the answer on there is what helps the OP. –  Djerry May 2 '12 at 12:34
add comment

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.