(Google Chrome)当网站未能响应连接请求时,Google Chrome会显示ERR_CONNECTION_REFUSED错误消息。(ERR_CONNECTION_REFUSED)尽管这听起来像是服务器端的问题(而且很可能是),但许多原因(例如过时的DNS缓存和冲突的网络设置)也可能触发错误。
如果重新加载网站、重新启动Chrome或重新启动 PC 或Mac没有帮助,那么按照下面的故障排除提示列表进行操作应该可以解决问题。
1.检查网站状态
要排除潜在的服务器端问题,您必须通过Downdetector或CurrentDown(CurrentlyDown)等在线工具运行其URL来检查网站的状态。
如果您收到一条消息,表明该网站对所有人都已关闭,您必须等到该网站重新上线。您还可以通过电子邮件或社交媒体通知网站管理员以加快速度。
2.清除DNS缓存
如果该站点适用于除您之外的其他所有人,则过时的DNS(域名系统(Domain Name System))缓存可能是ERR_CONNECTION_REFUSED错误背后的原因。删除它应该会强制您的计算机更新网站的 IP(互联网协议(Internet Protocol))地址,该地址可能自您上次访问以来已更改。
DNS缓存相关问题也可能导致 Chrome 中出现DNS_PROBE_FINISHED_BAD_CONFIG和ERR_CACHE_MISS错误。
在 Windows 中清除 DNS 缓存(Clear DNS Cache in Windows)
1. 按Windows + X打开高级用户菜单(Power User Menu)。然后,选择Windows PowerShell (Admin)。
2. 在提升的Windows PowerShell(Windows PowerShell)控制台中键入以下内容:
清除-DnsClientCache(Clear-DnsClientCache)
3. 按Enter并退出 Windows PowerShell。
在 macOS 中清除 DNS 缓存(Clear DNS Cache in macOS)
1. 按Command + Space打开Spotlight Search。然后,输入终端(terminal)并按Enter。
2. 将以下命令复制并粘贴到终端(Terminal)控制台中,然后按Enter:
sudo dscacheutil -flushcache;sudo killall -HUP mDNSResponder
3. 输入您的管理员密码,然后再次按Enter以执行命令。退出(Follow)终端(Terminal)。_
3.更改DNS服务器
(Spotty)PC 和Mac上不稳定(Mac)且不可靠的DNS服务器也会阻止Chrome连接到特定网站。要排除这种情况,您必须切换到流行的公共 DNS 服务(switch to a popular public DNS service),例如 Google DNS。
在 Windows 上更改 DNS 服务器(Change DNS Servers on Windows)
1. 打开开始(Start)菜单并选择设置(Settings)。
2. 选择网络和互联网(Network & Internet)。
3. 切换到Wi-Fi或以太网(Ethernet)侧选项卡。
4. 选择您的网络连接。
5. 在IP 设置(IP Settings)下,选择编辑(Edit)。
6. 将Edit IP Settings 设置(Edit IP Settings)为Manual并打开iPv4下的开关。
7. 在首选 DNS(Preferred DNS)和备用 DNS(Alternate DNS )字段中键入以下DNS地址:
8.8.8.8
8.8.4.4
8. 选择保存(Save)。
在 macOS 上更改 DNS 服务器(Change DNS Servers on macOS)
1. 打开Apple菜单并选择系统偏好设置(System Preferences)。
2. 选择网络(Network)。
3. 选择Wi-Fi或以太网(Ethernet )并选择高级(Advanced)。
4. 切换到DNS选项卡。
5. 添加以下 DNS 服务器:
8.8.8.8
8.8.4.4
6. 选择确定(OK),然后应用(Apply)。
4.清除Chrome缓存
过时的Chrome缓存可能会导致数据不匹配,进而导致网站加载问题。如果与DNS 相关的(DNS-related)修复没有帮助,您应该尝试清除它。
首先删除显示ERR_CONNECTION_REFUSED错误的站点的缓存。如果这不能解决问题或多个网站上不断出现相同的错误,请继续清除整个浏览器缓存。
仅清除一个站点的缓存(Clear Cache for One Site Only)
1. 尝试加载网站。然后,选择地址栏上的信息图标。(Info )
2. 选择站点设置(Site settings)。
3. 选择清除数据(Clear data)。
清除完整的浏览器缓存(Clear the Full Browser Cache)
1. 打开Chrome菜单并指向更多工具(More tools)>清除浏览数据(Clear browsing data)。
2. 切换到高级(Advanced)选项卡。
3. 将时间范围(Time range)设置为所有时间(All time)。
4. 选中Cookies and other site data(Cookies and other site data)和Cached images and files旁边的框。
5. 选择清除数据(Clear data)。
5. 更新 DHCP 租约
如果上述修复都没有帮助,您必须在您的计算机上更新 DHCP(动态主机配置协议)租约。(renew the DHCP (Dynamic Host Configuration Protocol) lease)这涉及从网络的路由器请求一个新的 IP 地址。
在 Windows 上续订 DHCP 租约(Renew DHCP Lease on Windows)
1. 打开提升的Windows PowerShell控制台。
2. 按以下顺序运行以下两个命令:
- ipconfig /release
- ipconfig /renew
3. 退出 Windows PowerShell。
在 Mac 上续订 DHCP 租约(Renew DHCP Lease on Mac)
1. 打开Apple菜单并选择系统偏好设置(System Preferences)。
2. 选择网络(Network)。
3. 选择Wi-Fi或以太网(Ethernet )并选择高级(Advanced)。
4. 切换到TCP / IP选项卡。
5. 选择续订 DHCP 租约(Renew DHCP Lease)。
6. 选择确定(OK)。
7. 退出系统偏好。
6. 禁用 VPN 和代理服务器
您在 PC 或Mac上使用(Mac)VPN(虚拟专用网络(Virtual Private Network))吗?这是在互联网上保护您的隐私(protect your privacy on the internet)的最佳方式。但是,VPN(VPNs)也会引入与连接相关的问题,因此请禁用您的 VPN 并检查是否有帮助。
此外,您应该禁用任何活动的代理服务器。以下是在 PC 和 Mac 上检查和停用代理服务器的(deactivate proxy servers on the PC and Mac)方法。
7. 将 Chrome 添加到防火墙
另一个与ERR_CONNECTION_REFUSED错误相关的修复涉及将Google Chrome添加为Windows或 macOS 防火墙的例外 - 如果它已经不是。
在 Windows 上将 Chrome 添加到防火墙(Add Chrome to Firewall on Windows)
1. 打开设置(Settings )应用程序。
2. 选择更新和安全(Update & Security)。
3. 切换到Windows 安全(Windows Security)侧选项卡。
4. 选择防火墙和网络保护(Firewall & network protection)。
5. 选择允许应用程序通过防火墙(Allow an app through firewall)。
6. 如果您没有在应用列表中看到Google Chrome ,请选择(Google Chrome)更改设置(Change settings),然后选择允许其他应用(Allow another app)。
7. 选择浏览(Browse )并从以下位置选择chrome.exe文件:(chrome.exe)
C:程序文件(Program Files)谷歌(Google)浏览器(Chrome)应用程序(Application)
8. 选择添加(Add),然后确定(OK)。
在 macOS 上将 Chrome 添加到防火墙(Add Chrome to Firewall on macOS)
1. 打开系统偏好设置(System Preferences)。
2. 选择安全和隐私(Security & Privacy)。
3. 切换到防火墙(Firewall )选项卡。
4. 选择单击锁进行更改(Click the lock to make changes)并选择防火墙选项(Firewall Options)。
5. 选择加(Plus )号图标并选择Google Chrome。
6. 选择添加(Add),然后选择确定(OK)。
8. 检查 Chrome 扩展
扩展有助于改进Chrome,但未优化的附加组件也会引入连接问题。识别(Identify)并删除它们。
1. 打开Chrome菜单。然后,指向更多工具(More tools)并选择扩展(Extensions)。
2.停用(Deactivate)每个活动的分机。
3. 如果最终修复了ERR_CONNECTION_REFUSED错误,请一次重新激活一个扩展,直到遇到导致问题的附加组件。完成后,将其删除并寻找替代扩展名。
9. 运行清理工具(仅限 Windows)
PC 版Google Chrome带有一个内置工具,可以识别和删除计算机中的恶意扩展程序、浏览器劫持程序和其他有害软件。如果Chrome 显示除了显示ERR_CONNECTION_REFUSED消息之外(ERR_CONNECTION_REFUSED)的性能相关问题(Chrome shows signs of performance-related issues)的迹象,您应该尝试使用它。
1. 打开Chrome菜单并选择设置(Settings)。
2. 进入高级(Advanced )>重置并清理(Reset and clean up)。
3. 选择清理计算机(Clean up computer)>查找(Find)。
这应该会提示Chrome扫描并从您的计算机中删除有害软件。
10. 重置铬
您是否仍然在Chrome中(Chrome)遇到 ERR_CONNECTION_REFUSED(ERR_CONNECTION_REFUSED)错误?重置 Web 浏览器应该会恢复任何损坏的配置,从而使其无法正常工作。
1. 打开Chrome菜单并选择设置(Settings)。
2. 进入高级(Advanced )>重置和清理( Reset and clean up)(PC)/重置(Reset)(Mac)。
3. 选择将设置重置为其原始默认值(Reset settings to their original defaults)>重置设置(Reset settings)。
Chrome完成自我重置后,登录浏览器并重新激活所有扩展程序。(Chrome)然后,尝试使用它。您可能不会再次遇到该错误。
谷歌浏览器:接受连接
上面的指针应该已经帮助您解决了Google Chrome中的(Google Chrome)ERR_CONNECTION_REFUSED错误。诸如重置DNS缓存或更新DHCP租约之类的(DHCP)修复(Fixes)几乎一直有效,因此如果问题再次出现,请不要忘记快速运行它们。只需提前检查服务器端问题即可。
How to Fix a err_connection_refused Error in Google Chrome
Google Chrome displays an ERR_CONNECTION_REFUSED error messagе when a website fails to respond to а request to connect tо it. Although that sounds like an iѕsue on the server-side (and it very well could be), many reasons—such as an obsolete DNS cachе and conflicting network ѕettings—can also trigger the error.
If reloading the website, relaunching Chrome, or restarting your PC or Mac didn’t help, then working your way through the list of troubleshooting tips below should sort things out.
1. Check Website Status
To rule out potential server-side issues, you must check the website’s status by running its URL through an online tool such as Downdetector or CurrentlyDown.
If you receive a message indicating that the site is down for everyone, you must wait it out until the website comes back online. You could also notify the webmaster via email or social media to speed things up.
2. Clear DNS Cache
If the site is up for everyone else but not you, an obsolete DNS (Domain Name System) cache is the likely reason behind the ERR_CONNECTION_REFUSED error. Deleting it should force your computer to update the website’s IP (Internet Protocol) address, which may have changed since the last time you accessed it.
DNS cache-related issues can also result in the DNS_PROBE_FINISHED_BAD_CONFIG and ERR_CACHE_MISS errors in Chrome.
Clear DNS Cache in Windows
1. Press Windows + X to open the Power User Menu. Then, select Windows PowerShell (Admin).
2. Type the following into an elevated Windows PowerShell console:
Clear-DnsClientCache
3. Press Enter and exit Windows PowerShell.
Clear DNS Cache in macOS
1. Press Command + Space to open Spotlight Search. Then, type terminal and press Enter.
2. Copy and paste the following command into the Terminal console and press Enter:
sudo dscacheutil -flushcache;sudo killall -HUP mDNSResponder
3. Type in your administrator password and press Enter again to execute the command. Follow by exiting Terminal.
3. Change DNS Servers
Spotty and unreliable DNS servers on the PC and Mac can also prevent Chrome from connecting to specific websites. To rule that out, you must switch to a popular public DNS service such as Google DNS.
Change DNS Servers on Windows
1. Open the Start menu and select Settings.
2. Select Network & Internet.
3. Switch to the Wi-Fi or Ethernet side-tabs.
4. Pick your network connection.
5. Under IP Settings, select Edit.
6. Set Edit IP Settings to Manual and turn on the switch under iPv4.
7. Type the following DNS addresses into the Preferred DNS and Alternate DNS fields:
8.8.8.8
8.8.4.4
8. Select Save.
Change DNS Servers on macOS
1. Open the Apple menu and select System Preferences.
2. Select Network.
3. Pick Wi-Fi or Ethernet and select Advanced.
4. Switch to the DNS tab.
5. Add the following DNS servers:
8.8.8.8
8.8.4.4
6. Select OK, then Apply.
4. Clear Chrome Cache
An outdated Chrome cache can lead to data mismatches and, subsequently, site loading issues. If the DNS-related fixes didn’t help, you should try clearing it.
Start by deleting the cache just for the site that displays the ERR_CONNECTION_REFUSED error. In case that doesn’t fix the problem or the same error keeps appearing on multiple websites, go ahead and clear the entire browser cache.
Clear Cache for One Site Only
1. Try loading the website. Then, select the Info icon on the address bar.
2. Select Site settings.
3. Select Clear data.
Clear the Full Browser Cache
1. Open the Chrome menu and point to More tools > Clear browsing data.
2. Switch to the Advanced tab.
3. Set Time range to All time.
4. Check the boxes next to Cookies and other site data and Cached images and files.
5. Select Clear data.
5. Renew DHCP Lease
If none of the fixes above helped, you must renew the DHCP (Dynamic Host Configuration Protocol) lease on your computer. That involves requesting a fresh IP address from the network’s router.
Renew DHCP Lease on Windows
1. Open an elevated Windows PowerShell console.
2. Run the two commands below in the following order:
- ipconfig /release
- ipconfig /renew
3. Exit Windows PowerShell.
Renew DHCP Lease on Mac
1. Open the Apple menu and select System Preferences.
2. Select Network.
3. Pick Wi-Fi or Ethernet and select Advanced.
4. Switch to the TCP/IP tab.
5. Select Renew DHCP Lease.
6. Select OK.
7. Exit System Preferences.
6. Disable VPN and Proxy Servers
Do you use a VPN (Virtual Private Network) on your PC or Mac? It’s the best way to protect your privacy on the internet. However, VPNs also introduce connectivity-related issues, so disable yours and check if that helps.
Additionally, you should disable any active proxy servers. Here’s how to check for and deactivate proxy servers on the PC and Mac.
7. Add Chrome to Firewall
Another ERR_CONNECTION_REFUSED error-related fix involves adding Google Chrome as an exception to the Windows or the macOS firewall—if it already isn’t.
Add Chrome to Firewall on Windows
1. Open the Settings app.
2. Select Update & Security.
3. Switch to the Windows Security side-tab.
4. Select Firewall & network protection.
5. Select Allow an app through firewall.
6. If you don’t see Google Chrome listed within the list of apps, select Change settings, followed by Allow another app.
7. Select Browse and choose the chrome.exe file from the following location:
C:\Program Files\Google\Chrome\Application
8. Select Add, then OK.
Add Chrome to Firewall on macOS
1. Open System Preferences.
2. Select Security & Privacy.
3. Switch to the Firewall tab.
4. Select Click the lock to make changes and choose Firewall Options.
5. Select the Plus icon and pick Google Chrome.
6. Select Add, then OK.
8. Check Chrome Extensions
Extensions help improve Chrome, but unoptimized add-ons also introduce connectivity issues. Identify and remove them.
1. Open the Chrome menu. Then, point to More tools and select Extensions.
2. Deactivate each active extension.
3. If that ends up fixing the ERR_CONNECTION_REFUSED error, reactivate the extensions one at a time until you come across the add-on causing the issue. Once you do, remove it and look for an alternative extension.
9. Run Cleanup Tool (Windows Only)
The PC version of Google Chrome comes with a built-in tool that can identify and remove malicious extensions, browser hijackers, and other harmful software from your computer. If Chrome shows signs of performance-related issues besides displaying the ERR_CONNECTION_REFUSED message, you should try using it.
1. Open the Chrome menu and select Settings.
2. Go to Advanced > Reset and clean up.
3. Select Clean up computer > Find.
That should prompt Chrome to scan for and remove harmful software from your computer.
10. Reset Chrome
Do you still keep running into the ERR_CONNECTION_REFUSED error in Chrome? Resetting the web browser should revert any corrupt configurations preventing it from working correctly.
1. Open the Chrome menu and select Settings.
2. Go to Advanced > Reset and clean up (PC)/Reset (Mac).
3. Select Reset settings to their original defaults > Reset settings.
Once Chrome finishes resetting itself, sign into the browser and re-activate any extensions. Then, try using it. You likely won’t encounter the error again.
Google Chrome: Connection Accepted
The pointers above should’ve helped you resolve the ERR_CONNECTION_REFUSED error in Google Chrome. Fixes such as resetting the DNS cache or renewing the DHCP lease work almost all the time, so don’t forget to run through them quickly should the problem recur. Just make it a point to check for server-side issues beforehand.