Localhost is a hostname that refers to the local machine currently making the request. On many computers, localhost is an alias for the IP address 127.0. 0.1. When a computer pings this IP address, it is communicating with itself.
An external or public IP address is used across the entire Internet to locate computer systems and devices. A local or internal IP address is used inside a private network to locate the computers and devices connected to it.
In [techie] talk " A localhost is a Internet Protocol loopback device which can be used by TCP/IP applications to talk to themselves." The default internal loop IP for the localhost is usually 127.0. 0.1 . This IP is different from the IP that identifies the computer on the network.
0.1 only serve locally not serve over public Ip.
What is the difference between the localhost and the real ip address?
If I access an application by using http://localhost:8080/index.html
and http://192.123.456.001:8080/index.html
(for example, 192.123.456.001 is the real ip address of the host computer), what is the difference?
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With