What is 127.0.0.1 IP Address or Localhost In Computer Network?

RSS
EMAIL
FACEBOOK
FACEBOOK
GOOGLE
GOOGLE
https://www.poftut.com/what-is-127-0-0-1-ip-address-or-localhost-in-computer-network/
PINTEREST
PINTEREST
INSTAGRAM

IP addresses are used to specify the hosts in a numeric way. There are different type of IP addresses in Computer networks. One of them is 127.0.0.1 which seems a bit confusing. 127.0.0.1 is a special purpose IPv4 address. This address is asssigned to the local system and can not be used by other systems.

127.0.0.1

127.0.0.1 is mainly designed to test local system network protocols. We can ping 127.0.0.1 like other IP addresses on the local or remote networks. The ping ICMP request will reply with successfully if there is no problem about the operating system network stack.

Ping 127.0.0.1

In this part we will ping the 127.0.0.1 to test our network stack. We will use ping utilyty which is explained in detail in the following tutorial.

Ping 127.0.0.1
Ping 127.0.0.1

Localhost

localhost is just a hostname used to solve DNS to 127.0.0.1 .Localhost will work 127.0.0.1 interchangebly. We can see that this domain name is defined in /etc/hosts for Linux and /Windows/etc/ for Windows operating systems. We can change the IP address or change the name of the host.

AND print it like below.

Localhost
Localhost

IPv6 127.0.0.1 As ::1

IPv6 also have the same 127.0.0.1 functionality. This address is expressed as ::1 in a short manner but the real or full IP address is 0000:0000:0000:0000:0000:0000:0000:0001

RSS
EMAIL
FACEBOOK
FACEBOOK
GOOGLE
GOOGLE
https://www.poftut.com/what-is-127-0-0-1-ip-address-or-localhost-in-computer-network/
PINTEREST
PINTEREST
INSTAGRAM