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: ping localhost wrong ip

09 Sep 2009   #1
DarmCrash

windows 7
 
 
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:".

Quote:
C:\Users\Test>ping localhost

Ping wird ausgeführt für Test-PC [::1] mit 32 Bytes Daten:
Antwort von ::1: Zeit<1ms
Antwort von ::1: Zeit<1ms
Antwort von ::1: Zeit<1ms
Antwort von ::1: Zeit<1ms

Ping-Statistik für ::1:
Pakete: Gesendet = 4, Empfangen = 4, Verloren = 0
(0% Verlust),
Ca. Zeitangaben in Millisek.:
Minimum = 0ms, Maximum = 0ms, Mittelwert = 0ms
ps: sry for bad english, im form germany.


My System SpecsSystem Spec
.
09 Sep 2009   #2
TGSoldier

 
 

You can easily type in "ping 127.0.0.1 "
My System SpecsSystem Spec
09 Sep 2009   #3
DarmCrash

windows 7
 
 

no, i need localhost for coding in php!


PROBLEM SOLVED

go to
Quote:
C:\Windows\System32\drivers\etc\hosts
change secruity settings and delete the "#". looks like this

Code:
127.0.0.1       localhost
and now:

Quote:
C:\Users\Test>ping localhost

Ping wird ausgeführt für Test-PC [127.0.0.1] mit 32 Bytes Daten:
Antwort von 127.0.0.1: Bytes=32 Zeit<1ms TTL=128
Antwort von 127.0.0.1: Bytes=32 Zeit<1ms TTL=128
Antwort von 127.0.0.1: Bytes=32 Zeit<1ms TTL=128
Antwort von 127.0.0.1: Bytes=32 Zeit<1ms TTL=128

Ping-Statistik für 127.0.0.1:
Pakete: Gesendet = 4, Empfangen = 4, Verloren = 0
(0% Verlust),
Ca. Zeitangaben in Millisek.:
Minimum = 0ms, Maximum = 0ms, Mittelwert = 0ms
My System SpecsSystem Spec
.

09 Sep 2009   #4
TGSoldier

 
 

Grats
My System SpecsSystem Spec
Reply

 ping localhost wrong ip




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
Win7 has wrong IP addr on ping, can only access with ip, not name
Hi all Have read and tried everything here to get my Win7 PC to access my XP laptop using its name. Have 3 machines. 1 PC ( ip 192.168.0.102) and 2 XP Laptops (say LXP1 and LXP2), one is ...104 the other, the troublesome one, is ...101. If I ping the machine name ping LXP2 I get the ping...
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
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
Cant browse to localhost with iis 7 and 2 ips
Hi Guys, Yesterday I was able to browse to http://localhost and see my iis webserver, today I installed an extra ip address onto my machine so I now have 192.168.10.251 and 192.168.10.252 and now when I browse to localhost I get a forbidden message? Does anyone know how to get my iis back...
Network & Sharing
Localhost FTP For Dreamweaver
More problems I don't seem to be able to get my FTP localhost server going with Dreamweaver I have downloaded XAMPP & installed it its working ok I have followed many tutorial Video's on the subject But when I go to view the new site it doesn't show it I am using Wordpress now its...
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 17:36.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App