Computer name (host name), the local address (IP / IPv4), localhost, 127.0.0.1 of relationship

First, I see the host name and ip address of two ways:

1 (easy) to open the cmd, type ipconfig / all

2, right-click Computer - Properties - Computer Name View

Control Panel - Network and Internet- Network and Sharing Center - click on the red box next part - Details - View IPv4 address

 

Second, local address , namely "native physical NIC is bound network protocol address", due to the current common network protocol, only the IPV4, IPX / Apple Tak disappeared, IPV6 still not commonplace, it usually refers only to IP addresses even IPv4 address .

Is " bound to the physical or virtual network interface IP address " for other devices to access.

You can also call a local area network or IP network IP , and press the map mode is found in the external network IP.

Three,  localhost , is a domain name , in the past it points to the IP address 127.0.0.1 . After the operating system support ipv6, it also points to the ipv6 address [:: 1] .

Windows, the domain name is in the hosts file predefined.

Four, 127.0.0.1 , the address is usually assigned to the loopback interface.

loopback is a special network interface (understood as virtual NIC), 127. * entire network is often used as the default address of the loopback network interface .

这个地址在其他计算机上不能访问,就算你想访问,访问的也是自己,因为每台带有TCP/IP协议栈的设备基本上都有 localhost/127.0.0.1。

Guess you like

Origin www.cnblogs.com/yanglu1024/p/12042141.html