MS Windows - "hosts" file

What is the meaning of "::1" in hosts file?

127.0.0.1       localhost
::1             localhost

LVL 1
longjumpsAsked:
Who is Participating?
 
PapertripCommented:
It is the IPv6 equivalent of 127.0.0.1 which is the loopback address
0
 
yjchong514Commented:

::1 Localhost is the equivalent to 127.0.0.1 Localhost but using IPv6 protocol format , ::1 localhost is valid when Internet Protocol version 6 (IPv6) is implemented on a system.

IPv4 127.0.0.1
IPv6 ::1

"::" is an abbreviation for missing zeros, so this loopback entry really means

0000:0000:0000:0000:0000:0000:0000:0001 localhost
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.