PDA

نسخه کامل مشاهده نسخه کامل : """ یک سوال ساده """



MichaelQwerty
14-01-2015, 19:42
سلام دوستان
سوال من اینه که چرا وقتی در cmd از دستور پینگ استفاده میکنم برای ایپی 127.0.0.1 و localhost پیام دو پیغام متفاوت است
C:\Users\Mi>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
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 = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 0ms, Maximum = 0ms, Average = 0ms




C:\Users\Mi>ping localhost

Pinging michael [::1] with 32 bytes of data:
Reply from ::1: time<1ms
Reply from ::1: time<1ms
Reply from ::1: time<1ms
Reply from ::1: time<1ms

Ping statistics for ::1:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 0ms, Maximum = 0ms, Average = 0ms

مگه نه این که هر دو به یک چیز اشاره داره

Tornado2800
02-02-2015, 20:17
سلام دوستان
سوال من اینه که چرا وقتی در cmd از دستور پینگ استفاده میکنم برای ایپی 127.0.0.1 و localhost پیام دو پیغام متفاوت است
C:\Users\Mi>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
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 = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 0ms, Maximum = 0ms, Average = 0ms




C:\Users\Mi>ping localhost

Pinging michael [::1] with 32 bytes of data:
Reply from ::1: time<1ms
Reply from ::1: time<1ms
Reply from ::1: time<1ms
Reply from ::1: time<1ms

Ping statistics for ::1:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 0ms, Maximum = 0ms, Average = 0ms

مگه نه این که هر دو به یک چیز اشاره داره

سلام
۱- در صورتی که هیچ ادرس لوکال هاستی در سیستم شما بنا به هر دلیل قابل شناسایی نباشه از جمله جلوگیری توسط فایروال ها و...

۲- استفاده از دی ان اس سرور داخلی