localhost vs real ip address

后端 未结 4 1310
栀梦
栀梦 2020-12-05 07:47

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 ht

4条回答
  •  孤街浪徒
    2020-12-05 08:21

    When you access localhost, your /etc/hosts file will tell your computer not to look any further and redirects you to your own computer. When you access the local IP adress, your computer will ask the router to fetch the data, and your router will then point back to your computer.

提交回复
热议问题