简体   繁体   中英

unable to connect through website using localhost or IP address

I am trying to connect to a website which is hosted locally on a server but unable to connect. I have reset the IIS and try to connect it using local host but its is not working. I haven't change any thing and able to connect through it yesterday. Can some please help and tell me what to do and what are the possibilities that why I am not able to connect.

Try to check three things.

  1. If you are using a local host name check that, the same bindning is set on your site and that the same host name row exists in your hosts file (usually in C:\\Windows\\System32\\Drivers\\etc\\hosts) like this example:

     127.0.0.1 localsite.dev 
  2. Check that the sites root is pointing to the correct directory on your local machine.
  3. If you have access to a local development tool, like Visual studio, try to compile and see if build errors exists.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM