Tell me more ×
Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.

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 the url

http://localhost:49824/

When I copy the same url and try to run the website in Chrome or Firefox it shows me the following error.

ERROR

The requested URL could not be retrieved    
The following error was encountered while trying to retrieve the URL: http://localhost:49824/    
Connection to 127.0.0.1 failed.    
The system returned: (111) Connection refused    
The remote host or network may be down. Please try the request again.    
Your cache administrator is webmaster.

I have rebuilt the solution and added the url to allowed site. But still the problem persists. How should I solve this problem?

share|improve this question

4 Answers

Finally i found the solution ... It is 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)

share|improve this answer
where is the firefox solution? – LifeH2O Nov 9 '12 at 15:06

I faced the same issue and the complete solution is to set to false(uncheck) the "Automatically detect settings" checkbox from Lan Area Network( the same window as for Bypass proxy server for local address )

share|improve this answer

For all browsers,

  • Open internet Options (or Internet properties)
  • Go to connections tab
  • Click on LAN Settings
  • Tick Use proxy server for your LAN
  • Tick Bypass proxy server for your local address (Don't change the port number)
  • Click on Ok

Now you are good to go. :)

share|improve this answer

if you are use windows system,please check the file "C:\Windows\System32\drivers\etc\hosts" add line such as "127.0.0.1 localhost"

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.