localhost and 127.0.0.1
浅蓝冰粒
浅蓝冰粒 2018-03-07 10:55:50
0
1
1625

Why can I use 127.0.0.1 to access successfully, but when I use localhost, it shows that I am not on the server?

浅蓝冰粒
浅蓝冰粒

reply all(1)
寻觅 beyond

You modify the hosts file of this machine.

window is under c:\windows\system32\drivers\etc, add 127.0.0.1 localhost

Linux is under /etc/ Add 127.0.0.1 localhost

to the hosts file
  • reply Thanks! The file has also been modified, but it still does not display.
    浅蓝冰粒 author 2018-03-11 21:11:22
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template