Localhost not working in chrome and firefox

前端 未结 12 1081
你的背包
你的背包 2020-11-28 08:45

I am doing a web project using visual studio 2010(MVC3 Razor) and Windows 7.

My default browser is IE. When I run the project, the website working is perfectly with

相关标签:
12条回答
  • 2020-11-28 09:15

    Steps

    1. Search IIS In Visual Studio 2015 Search IIS image

    2. Chose (Use the 64 bit of version of IIS Express for web site and project Use 64 bit image )

    0 讨论(0)
  • 2020-11-28 09:18

    For Chrome go to

    Settings->Network->Change Proxy setting

    Now Internet properties will open so you need to go LAN settings and click on check box :

    Bypass proxy server for local address

    0 讨论(0)
  • 2020-11-28 09:18

    For my project, I am set up to use https. I just got a new computer and cloned the project in git. The protocol and port number for the project are not saved in the solution file, so you have to make sure to set it again.

    0 讨论(0)
  • 2020-11-28 09:23

    If you are using windows system:

    please check the file

    C:\Windows\System32\drivers\etc\hosts

    and add line such as:

    127.0.0.1 localhost

    0 讨论(0)
  • 2020-11-28 09:25

    Finally I found the solution ... It's very easy

    1. Go to the LAN settings (In Chrome : Tools -> Options -> Under the hood -> Change Proxy setting -> LAN Setting)

    2. There will be a checkbox for "Bypass proxy server for local address"

    3. Tick the checkbox.

    Done!

    On Mac/Apple: Chrome uses system preferences for localhost exclusion:

    1. Go to System Preferences -> Network -> advanced -> Proxy settings

    2. Add 'localhost' at the bottom where it says: 'ignore proxy settings for these hosts and domains' (Exceptions are separated by a comma)

    0 讨论(0)
  • 2020-11-28 09:26

    In case the browser LAN proxy setting solution doesn't work for you:

    As mentioned in this similar Q&A How to solve ERR_CONNECTION_REFUSED when trying to connect to localhost running IISExpress - Error 502 (Cannot debug from Visual Studio)?

    Simply changing the port number of your web project can be a quick fix.

    0 讨论(0)
提交回复
热议问题