cannot ping localhost on Windows XP Pro

rcarmichael

Junior Member
Mar 1, 2004
2
0
0
Hi,

When I "ping localhost" I get a "request time out" response.

I have tried reseting the TCP/IP protocol stack using the command "netsh int ip reset c:\resetlog.txt" however this did not help.

I can connect to the internet and can ping other ip addresses on the internet fine but I cannot ping my localhost or 127.0.0.1.

What can I do to fix this problem?

Thanks

Richard
 

rcarmichael

Junior Member
Mar 1, 2004
2
0
0
I have been reading a few other forums on the web and have been typing some commands at the dos prompt. When I use the command route print I get the following info:

F:\Documents and Settings\Richard>route print
===========================================================================
Interface List
0x1 ........................... MS TCP Loopback interface
0x20003 ...00 53 45 00 00 00 ...... WAN (PPP/SLIP) Interface
===========================================================================
===========================================================================
Active Routes:
Network Destination Netmask Gateway Interface Metric
0.0.0.0 0.0.0.0 144.139.181.56 144.139.181.56 1
127.0.0.0 255.0.0.0 127.0.0.1 127.0.0.1 1
139.134.109.178 255.255.255.255 144.139.181.56 144.139.181.56 1
144.139.181.56 255.255.255.255 127.0.0.1 127.0.0.1 50
144.139.255.255 255.255.255.255 144.139.181.56 144.139.181.56 50
224.0.0.0 240.0.0.0 144.139.181.56 144.139.181.56 1
Default Gateway: 144.139.181.56
===========================================================================
Persistent Routes:
None

I don't really understans what this means but hope it helps someone identify my problem.

Thanks for any help.

Richard
 

JustinLerner

Senior member
Mar 15, 2002
425
0
0
First, ensure that you have an IP address of 127.x.y.z corresponding to "localhost" in your hosts file. (In the Winnt\system32\drivers\etc directory).

If you are still having problems, unistall, and reinstall your IP stack (add a protocol like NetBEUI and delete/remove the IP protocol). Then reinstall the IP protocol (maybe after a reboot).

If you are still having problems and the route table still reads the same, something is setting your Metric too high on your loopback address. A metric of 50 is really odd when going to any loopback address. Your "localhost" mapping/name resolution is accomplished by your hosts file (no extension).