Windows – Can’t ping the computer – “Transmit failed. General failure.”

networkingpingwindows

I am having an issue with my computer. My IIS services are not working.

I have narrowed it down to the fact that my computer cannot find itself via its name.

I try pinging my computer by its name and I get this:

C:\Users\18773>ping MyComputerNameHere

Pinging MyComputerNameHere [::1] with 32 bytes of data:
PING: transmit failed. General failure.
PING: transmit failed. General failure.
PING: transmit failed. General failure.
PING: transmit failed. General failure.

Ping statistics for ::1:
    Packets: Sent = 4, Received = 0, Lost = 4 (100% loss),

I tried having someone else ping my machine and it works fine for them.

Any ideas?

Best Answer

Since Vista and Server 2008, Windows prefers IPv6 whenever possible. In your case, Windows did prefer to lookup the AAAA record instead of the corresponding A record. Therefore, the host did ping ::1 and not 127.0.0.1 or any other IPv4 address.

How to disable the preference of IPv6: IPv4 vs IPv6 priority in Windows 7 at superuser.com.

There is a packaged solution available: MicrosoftEasyFix50410.msi. You can download it at microsoft.com. Look for Prefer IPv4 over IPv6 in prefix policies.

If you want to prevent ping from using IPv6 at all, then use the -4 option.

Related Question