本地主机不在Chrome和Firefox的工作 [英] Localhost not working in chrome and firefox

查看:249
本文介绍了本地主机不在Chrome和Firefox的工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我做的使用Visual Studio 2010(MVC3剃刀)和Windows 7。

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

我的默认浏览器是IE。当我运行该项目,该网站的工作是完全的网址

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

的http://本地主机:49824 /

当我复制相同的URL,并尝试运行在Chrome或Firefox的网站它让我看到下面的错误。

When I copy the same url and try to run the website in Chrome or Firefox it shows me the following 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?

推荐答案

终于让我找到了解决办法...这是很容易

Finally i found the solution ... It is very easy


  1. 转到LAN设置(在Chrome:工具 - >选项 - >引擎盖下 - >更改代理服务器设置 - > LAN设置)

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

将有对于本地地址不使用代理服务器复选框

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

勾选复选框。

完成!

在苹果机/苹果:
Chrome使用系统preferences本地主机排除:

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


  1. 进入系统preferences - >网络 - >高级 - >代理设置

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

在那里说底部添加的'localhost':'忽略这些主机和域的代理设置(异常由逗号分隔)

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

这篇关于本地主机不在Chrome和Firefox的工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆