BigRat
asked on
Cannot access localhost nor 127.0.0.1 in IE and Firefox
Just recently, probably after some Windows update (I'm not sure) I can no longer access my Apache server on port 80 by entering http://127.0.0.1 in IE (6.0 SP3) nor in FireFox (3.0.10) on my laptop.
IE displays a "page not found" error about server or DNS not being found, whereas Firefox says nothing. I can access the full internet (via my LAN and router) without the slightest problem. I have also checked that %SYSTEM32%/Drivers/etc/Hos ts has a 127.0.0.1 localhost entry (which at first it didn't - just an empty file, so it MUST have been updated or overwritten).
When I telnet localhost 80 and type the GET request, Apache replies OK, and from outside everything works fine.
But locally I cannot access 127.0.0.1 port 80 via HTTP
Any ideas?
IE displays a "page not found" error about server or DNS not being found, whereas Firefox says nothing. I can access the full internet (via my LAN and router) without the slightest problem. I have also checked that %SYSTEM32%/Drivers/etc/Hos
When I telnet localhost 80 and type the GET request, Apache replies OK, and from outside everything works fine.
But locally I cannot access 127.0.0.1 port 80 via HTTP
Any ideas?
ASKER
C:\temp>netstat -rn
Routingtabelle
========================== ========== ========== ========== ========== =========
Schnittstellenliste
0x1 .......................... . MS TCP Loopback interface
0x10003 ...00 16 36 a1 7e b3 ...... Realtek RTL8139/810x Family Fast Ethernet NI
C - Paketplaner-Miniport
========================== ========== ========== ========== ========== =========
========================== ========== ========== ========== ========== =========
Aktive Routen:
Netzwerkziel Netzwerkmaske Gateway Schnittstelle Anzahl
0.0.0.0 0.0.0.0 172.20.1.254 172.20.107.22 20
127.0.0.0 255.0.0.0 127.0.0.1 127.0.0.1 1
172.20.0.0 255.255.0.0 172.20.107.22 172.20.107.22 20
172.20.107.22 255.255.255.255 127.0.0.1 127.0.0.1 20
172.20.255.255 255.255.255.255 172.20.107.22 172.20.107.22 20
224.0.0.0 240.0.0.0 172.20.107.22 172.20.107.22 20
255.255.255.255 255.255.255.255 172.20.107.22 172.20.107.22 1
Standardgateway: 172.20.1.254
========================== ========== ========== ========== ========== =========
Ständige Routen:
Keine
C:\temp>
Routingtabelle
==========================
Schnittstellenliste
0x1 ..........................
0x10003 ...00 16 36 a1 7e b3 ...... Realtek RTL8139/810x Family Fast Ethernet NI
C - Paketplaner-Miniport
==========================
==========================
Aktive Routen:
Netzwerkziel Netzwerkmaske Gateway Schnittstelle Anzahl
0.0.0.0 0.0.0.0 172.20.1.254 172.20.107.22 20
127.0.0.0 255.0.0.0 127.0.0.1 127.0.0.1 1
172.20.0.0 255.255.0.0 172.20.107.22 172.20.107.22 20
172.20.107.22 255.255.255.255 127.0.0.1 127.0.0.1 20
172.20.255.255 255.255.255.255 172.20.107.22 172.20.107.22 20
224.0.0.0 240.0.0.0 172.20.107.22 172.20.107.22 20
255.255.255.255 255.255.255.255 172.20.107.22 172.20.107.22 1
Standardgateway: 172.20.1.254
==========================
Ständige Routen:
Keine
C:\temp>
ASKER
What is interesting is that ping localhost or ping 127.0.0.1 works OK, the same when I do a telnet localhost 80 and enter a GET request. All OK. Moreover when I use a bit of Delphi code and open an internet connection using InternetOpen/InternetOpenU rl/Interne tREadFile that all works perfectly. Only IE and FireFox don't, and I've just upgraded to IE 8.0!
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
netstat -rn
Publish the results.
You can also completely reset your TCP/IP configuration by going to a cmd prompt and do the following:
netsh interface reset all <enter>