What is IP address '::1'?

前端 未结 2 956
遥遥无期
遥遥无期 2020-11-28 06:06

I was playing with sockets on local machine with no network connection. See below:

IPAddress address = IPAddress.Any; // doesn\'t work
IPAddress address = IP         


        
2条回答
  •  悲&欢浪女
    2020-11-28 06:57

    ::1 is the loopback address in IPv6. Think of it as the IPv6 version of 127.0.0.1.

    See http://en.wikipedia.org/wiki/Localhost

提交回复
热议问题