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

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

 
 

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

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

 
 

Grats
My System SpecsSystem Spec
Reply

 ping localhost wrong ip




Thread Tools




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 07:51 PM.
Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App
  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33