search

Home  >  Q&A  >  body text

What is the reason why it can be opened using IP but cannot be opened using local domain name?

What is the reason why it can be opened using IP but cannot be opened using local domain name?

_ouly_ouly2611 days ago1372

reply all(5)I'll reply

  • PHP中文网

    PHP中文网2017-11-03 09:05:00

    1 possibility:

    1. The IP can be accessed in the local environment. The domain name is not convenient. Check whether the domain name of the local host file is bound.

    2. In the online server environment, if the IP can access the domain name but cannot, it may be that the domain name has not been registered, or it may be that the server provider has whitelist restrictions. Just contact the server provider to inquire.

    reply
    0
  • 路过

    路过2017-11-03 08:15:02

    The person above is right

    reply
    0
  • PHP中文网

    What you said downstairs is right

    PHP中文网 · 2017-11-03 09:03:06
  • 天蓬老师

    天蓬老师2017-11-02 22:01:51

    You need to modify the local hosts file to bind the local domain name you created with the local host IP.

    After the binding is completed, you need to restart the web server

    reply
    1
  • _ouly

    Hello teacher, I have bound it but it still doesn’t work. Is this a browser problem?

    _ouly · 2017-11-03 19:02:03
  • Cancelreply