Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: i can ping to 127.0.0.1 but not to the localhost name

17 Feb 2018   #1
leotina

windows 7 enterprise
 
 
i can ping to 127.0.0.1 but not to the localhost name

so here is my story

last week all of a sudden the wirelesslan gave me message limited access

now connecting my pc via lancable to a network gave me the message no connection to lan

ipconfig ---gave me just

Windows IP Configuration


ipconfig /all gave me

Windows IP Configuration
Host Name . . . . . . . . . . . . :
Primary Dns Suffix . . . . . . . :
Node Type . . . . . . . . . . . . : Peer-Peer
IP Routing Enabled. . . . . . . . : No
WINS Proxy Enabled. . . . . . . . : No



deinstallled the networkcard - deleted the driver load via stick new driver from intel plus restarts
reinstalled tcp on the networkadapter --- no success

found in some forums that ping to 127.0.0.1 must work -- which is in my case true
but trying to ping to the name localhost -- i get errormessage


my it-deparment told me new installation -- which in fact i could do
but my personel view of the things is different -- i want to know whats going on

basically i have time to solve the issue , cause i already typing this via my new pc

nevertheless i am eager to dig into the depth of windows

i kindly ask the community for usefull tipps --
my personell oppinion to problems

when there is a problem i have it
but after a certain period i am getting the problem for the problem
and that where its getting though for it :):)

leo


My System SpecsSystem Spec
.
17 Feb 2018   #2
Oualid

Win7
 
 

Hi Leo
don't worry it's just a name resolving problem/dns

what you have to do is open Notepad as admin (right click>> open as admin)
then click open a new file, after that browse to this location in your Pc:
C:\Windows\System32\drivers\etc\

and open the hosts file with notepad and add this line

127.0.0.1 localhost
and Save
My System SpecsSystem Spec
18 Feb 2018   #3
leotina

windows 7 enterprise
 
 

dear oualid

thnks for response
tried your proposed action
i checked the file data as you mention above are there -- so i think we have to keep on diggin :)
My System SpecsSystem Spec
.

18 Feb 2018   #4
leotina

windows 7 enterprise
 
 

dear all
one more remark: i verified 100% that the prob is not related to hardware
i swapped my hard disk to another laptop of same type still the problem
i took the harddisk from the other laptop put it into my pc all was the working fine
My System SpecsSystem Spec
18 Feb 2018   #5
Oualid

Win7
 
 

dear Leo

It sounds like your TCP stack is in some way corrupted.

This may clear the issue

Open a command prompt as Administrator and Run these commands one line at the time:

netsh winsock reset
netsh winsock reset catalog
netsh int ip reset reset.log
netsh int ipv4 reset reset.log
netsh int ipv6 reset reset.log
ipconfig /flushdns


Reboot if necessary

Try ping again
My System SpecsSystem Spec
19 Feb 2018   #6
leotina

windows 7 enterprise
 
 

dear Oualid
following your advise find below the results
for better understanding it did it in the following way
as the pc is offline -- copied your commands to a usb stick
put the usb stick to my "bad pc" did all actions- put results back to stick and attached it below


Here is the message that has just been posted:
***************
dear Leo

It sounds like your TCP stack is in some way corrupted.

This may clear the issue

Open a command prompt as Administrator and Run these commands one line at the time:

netsh winsock reset
netsh winsock reset catalog
netsh int ip reset reset.log
netsh int ipv4 reset reset.log
netsh int ipv6 reset reset.log
ipconfig /flushdns


Reboot if necessary
Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.

C:\WINDOWS\system32>netsh winsock reset

Sucessfully reset the Winsock Catalog.
You must restart the computer in order to complete the reset.


C:\WINDOWS\system32>netsh winsock reset catalog

Sucessfully reset the Winsock Catalog.
You must restart the computer in order to complete the reset.


C:\WINDOWS\system32>netsh int ip reset reset.log
Reseting Global, OK!
Reseting Interface, OK!
Reseting Unicast Address, OK!
Restart the computer to complete this action.


C:\WINDOWS\system32>netsh int ipv4 reset reset.log
There's no user specified settings to be reset.


C:\WINDOWS\system32>netsh int ipv6 reset reset.log
There's no user specified settings to be reset.


C:\WINDOWS\system32>ipconfig /flushdns

Windows IP Configuration

Could not flush the DNS Resolver Cache: Function failed during execution.


C:\WINDOWS\system32>



after reset of pc i get the following


Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.

C:\Users\lwenth>ipconfig

Windows IP Configuration


C:\Users\lwenth>ipconfig /all

Windows IP Configuration

Host Name . . . . . . . . . . . . :
Primary Dns Suffix . . . . . . . :
Node Type . . . . . . . . . . . . : Peer-Peer
IP Routing Enabled. . . . . . . . : No
WINS Proxy Enabled. . . . . . . . : No

C:\Users\lwenth>ping 127.0.0.1

Pinging 127.0.0.1 with 32 bytes of data:
Reply from 127.0.0.1: bytes=32 time<1ms TTL=128
Reply from 127.0.0.1: bytes=32 time<1ms TTL=128

Ping statistics for 127.0.0.1:
Packets: Sent = 2, Received = 2, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 0ms, Maximum = 0ms, Average = 0ms
Control-C
^C
C:\Users\lwenth>ping localhost
Ping request could not find host localhost. Please check the name and try again.


C:\Users\lwenth>
My System SpecsSystem Spec
19 Feb 2018   #7
samuria

win 8 32 bit
 
 

Can you run CMD ipconfig /all and post the full results
My System SpecsSystem Spec
19 Feb 2018   #8
leotina

windows 7 enterprise
 
 
answer to samurai

dear samurai



C:\Users\lwenth>ipconfig /all

Windows IP Configuration

Host Name . . . . . . . . . . . . :
Primary Dns Suffix . . . . . . . :
Node Type . . . . . . . . . . . . : Peer-Peer
IP Routing Enabled. . . . . . . . : No
WINS Proxy Enabled. . . . . . . . : No

C:\Users\lwenth>ping 127.0.0.1

Pinging 127.0.0.1 with 32 bytes of data:
Reply from 127.0.0.1: bytes=32 time<1ms TTL=128
Reply from 127.0.0.1: bytes=32 time<1ms TTL=128

Ping statistics for 127.0.0.1:
Packets: Sent = 2, Received = 2, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 0ms, Maximum = 0ms, Average = 0ms
Control-C
^C
C:\Users\lwenth>ping localhost
Ping request could not find host localhost. Please check the name and try again.
info requested
My System SpecsSystem Spec
19 Feb 2018   #9
samuria

win 8 32 bit
 
 

If that's a full print out you don't have any network adapters is there any with yellow triangles in device manager?
My System SpecsSystem Spec
19 Feb 2018   #10
leotina

windows 7 enterprise
 
 

dear samurai
thnks for your response
just quick info
in device manager i can see the networkcard without any triangle- i will send you screen shot
in 10 hours - so that you can see it yourself -maybe meanwhile you have another idea
so that i could also do this
nice day
My System SpecsSystem Spec
Reply

 i can ping to 127.0.0.1 but not to the localhost name




Thread Tools




Similar help and support threads
Thread Forum
Can't ping localhost over IPv4 only IPv6
I am trying to get to the bottom of several networking issues, but just been thrown a curve-ball - so hoping someone can help. I have a BT HomeHub v2 acting as Firewall and DHCP I have a QNAP NAS and several devices (mostly Windows 7 and iOS devices) The vast majority of my networking setup...
Network & Sharing
High ping in game, low ping in cmd
Hey, Firstly, I'm not sure if this belongs in the network or the gaming section but I decided to post this here. So, my problems is that when I play Left 4 Dead, I have something like +100ms ping to servers that others have just fine ping in. I also did a traceroute to a certain server and it...
Gaming
Localhost not working
Hi lads, New here. The name is Dave. I'm hoping someone can help me out. When I try to view http://localhost , i get nothing . Page not found. I have WAMP server installed. I just can't seem to figure out whats wrong. I've restarted all the services in WAMP and everything but still,...
Network & Sharing
Network drop (bad localhost ping) under 7-64bits
Hi, First at all please excuse me for my english as it's not my main langage. I have some troubles with my network connection under Windows Seven. Often (usually while surfing on internet) my connection drop. First I though it was because of chrome but it's not (I tried ie and firefox). ...
Network & Sharing
ping localhost wrong ip
hello, when i ping "localhost" comes a ip like this "::1:".. but i want 127.0.0.1 for coding in xampp. i have disable the ipv6 in the connection settings but localhost says still "::1:". ps: sry for bad english, im form germany. ;)
Network & Sharing


Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 18:17.
Twitter Facebook Google+