{"id":42481,"date":"2026-07-09T14:52:56","date_gmt":"2026-07-09T21:52:56","guid":{"rendered":"https:\/\/dhblog.dream.press\/blog\/?p=42481"},"modified":"2026-07-09T15:47:45","modified_gmt":"2026-07-09T22:47:45","slug":"how-to-fix-connection-refused-error","status":"publish","type":"post","link":"https:\/\/www.dreamhost.com\/blog\/how-to-fix-connection-refused-error\/","title":{"rendered":"How To Fix ERR_CONNECTION_REFUSED"},"content":{"rendered":"\n<div class=\"liftoff-cta-card\">\n\t<div class=\"line\">\n\t\t<svg width=\"834\" height=\"469\" viewBox=\"0 0 834 469\" fill=\"none\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\">\n<path opacity=\"0.7\" d=\"M865.739 -59.8017C865.739 -59.8017 832.792 123.045 744.31 182.376C655.829 241.707 562.417 143.097 474.164 202.767C386.505 262.036 442.275 384.659 354.504 443.76C266.434 503.061 98.0198 364.278 4.7754 318.308\" stroke=\"url(#paint0_linear_8_19)\" stroke-opacity=\"0.25\" stroke-width=\"19.8\"\/>\n<defs>\n<linearGradient id=\"paint0_linear_8_19\" x1=\"918.374\" y1=\"-112.088\" x2=\"147.486\" y2=\"548.265\" gradientUnits=\"userSpaceOnUse\">\n<stop offset=\"0.0576923\"\/>\n<stop offset=\"0.350962\" stop-color=\"#0073EC\"\/>\n<stop offset=\"0.825067\" stop-color=\"#C265FE\"\/>\n<stop offset=\"1\"\/>\n<\/linearGradient>\n<\/defs>\n<\/svg>\n\n\t<\/div>\n\t<div class=\"liftoff-cta-card__content\">\n\t\t<div class=\"headline_1\">\n\t\t\t\n<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"32\" height=\"32\" viewBox=\"0 0 32 32\" fill=\"none\">\n<path d=\"M24.0006 16.0019C19.5835 16.0019 16.0015 19.5839 16.0015 24.001V32.0001H32.003V15.9985H24.0039L24.0006 16.0019Z\" fill=\"url(#paint0_linear_3747_604)\"\/>\n<path d=\"M16.0015 7.99911V0H0V16.0016H7.99906C12.4162 16.0016 15.9981 12.4196 15.9981 8.00247L16.0015 7.99911Z\" fill=\"url(#paint1_linear_3747_604)\"\/>\n<path d=\"M7.99902 16.002C12.4168 16.002 15.998 19.5832 15.998 24.001C15.9979 28.4186 12.4167 32 7.99902 32C3.58137 32 0.000149208 28.4186 0 24.001C0 19.5832 3.58128 16.002 7.99902 16.002ZM24.001 0C28.4185 0.000241972 32 3.58143 32 7.99902C32 12.4167 28.4185 15.9978 24.001 15.998C19.5832 15.998 16.002 12.4168 16.002 7.99902C16.002 3.58128 19.5832 0 24.001 0Z\" fill=\"url(#paint2_linear_3747_604)\"\/>\n<rect x=\"8\" y=\"8\" width=\"16\" height=\"16\" fill=\"#FFFFFF\"\/>\n<path d=\"M16.0015 7.99902H24.0006V15.9981C19.5835 15.9981 16.0015 12.4128 16.0015 7.99902Z\" fill=\"#18181B\"\/>\n<path d=\"M7.99908 16.0015L7.99908 8.00235H15.9981C15.9981 12.4195 12.4128 16.0015 7.99908 16.0015Z\" fill=\"#18181B\"\/>\n<path d=\"M16.0015 24.0005H8.00246V16.0014C12.4196 16.0014 16.0015 19.5867 16.0015 24.0005Z\" fill=\"#18181B\"\/>\n<path d=\"M24.0007 16.0015V24.0006H16.0016C16.0016 19.5835 19.5869 16.0015 24.0007 16.0015Z\" fill=\"#18181B\"\/>\n<defs>\n<linearGradient id=\"paint0_linear_3747_604\" x1=\"16.0001\" y1=\"16.0002\" x2=\"32.0001\" y2=\"32.0002\" gradientUnits=\"userSpaceOnUse\">\n<stop stop-color=\"#A1A1AA\"\/>\n<stop offset=\"1\" stop-color=\"#C7C7CD\"\/>\n<\/linearGradient>\n<linearGradient id=\"paint1_linear_3747_604\" x1=\"0\" y1=\"0\" x2=\"16\" y2=\"16\" gradientUnits=\"userSpaceOnUse\">\n<stop offset=\"0.251049\" stop-color=\"#C7C7CD\"\/>\n<stop offset=\"1\" stop-color=\"#A1A1AA\"\/>\n<\/linearGradient>\n<linearGradient id=\"paint2_linear_3747_604\" x1=\"-11.3782\" y1=\"44.9411\" x2=\"-8.40086\" y2=\"-18.7449\" gradientUnits=\"userSpaceOnUse\">\n<stop stop-color=\"#BE59FF\"\/>\n<stop offset=\"0.19\" stop-color=\"#9D60FF\"\/>\n<stop offset=\"0.74\" stop-color=\"#4274FF\"\/>\n<stop offset=\"1\" stop-color=\"#1F7CFF\"\/>\n<\/linearGradient>\n<\/defs>\n<\/svg>\n\n\t\t\tMeet Remixer\n\t\t<\/div>\n\t\t<div class=\"headline_2\">You describe it. Remixer builds it.<\/div>\n\t\t<p>The AI website builder that turns conversation into designer-level sites. Free with hosting.<\/p>\n\t\t        <a\n            href=\"https:\/\/www.dreamhost.com\/remixer-website-builder\/\"\n                        class=\"btn btn--brand\"\n                                    target=\"_blank\"\n            rel=\"noopener noreferrer\"\n            >\n                            Start Free Trial                    <\/a>\n\n\t<\/div>\n\t<div class=\"tr-img-wrap-outer\"><img decoding=\"async\" data-skip-lazy class=\"\" src=\"https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2026\/03\/remixer-screen.webp\" alt=\"DreamHost Remixer AI website builder\" \/><\/div>\n<\/div>\n\n\n<p class=\"wp-block-paragraph\">Oh no. You\u2019re trying to load a page, but all you get is an <strong>ERR_CONNECTION_REFUSED<\/strong> error message.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The good news: this error has a short list of causes, and you can test for each one. Sometimes the problem lives on your device: a bad browser extension, a misbehaving proxy, or a stale DNS setting. Sometimes the website\u2019s server really is turning visitors away.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">This guide explains what ERR_CONNECTION_REFUSED means, how to tell whether the problem is on your side or the site\u2019s, and how to fix it \u2014 whether you\u2019re a website owner, a visitor, or a developer staring at localhost.<\/p>\n\n\n\n<h2 id=\"definition\" class=\"wp-block-heading\">What Is The ERR_CONNECTION_REFUSED Error?<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">ERR_CONNECTION_REFUSED is a browser error meaning the server (or a firewall in front of it) actively rejected the browser\u2019s connection attempt. The refusal happens at the network level, before any HTTP request is sent \u2014 usually because nothing on the server is listening on the port the browser tried to reach.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Because the connection fails before an <a href=\"https:\/\/help.dreamhost.com\/hc\/en-us\/articles\/360036487692-HTTP-Headers-overview\" target=\"_blank\" rel=\"noopener\">HTTP request<\/a> is ever sent, you don\u2019t get an HTTP status code like a <a href=\"https:\/\/www.dreamhost.com\/blog\/how-to-fix-wordpress-404-error\/\">404<\/a> or a <a href=\"https:\/\/www.dreamhost.com\/blog\/500-internal-server-error\/\">500<\/a>. The <a href=\"https:\/\/www.dreamhost.com\/glossary\/hosting\/server\/\">server<\/a> never got far enough to say anything.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">(A quick gloss for the road ahead: a <em>port<\/em> is one of the numbered doors a server answers on. Regular web traffic uses port 80 for HTTP and port 443 for HTTPS.)<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">It also isn\u2019t the same as getting no response at all. A <em>refused<\/em> connection means something at the other end answered \u201cno.\u201d A <em>timeout<\/em> (like ERR_CONNECTION_TIMED_OUT) means nothing answered, period.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" width=\"1600\" height=\"942\" data-src=\"https:\/\/www.dreamhost.com\/blog\/wp-content\/smush-webp\/2023\/11\/ERR_CONNECTION_-REFUSED-vs-ERR_CONNECTION_-TIMED_OUT.jpg.webp\" alt=\"side by side diagram showing the computer going to the server, received, but ignored versus err_connection_timed_out where the computer goes to the server with absolutely no server response\" class=\"wp-image-42504 lazyload\" data-srcset=\"https:\/\/www.dreamhost.com\/blog\/wp-content\/smush-webp\/2023\/11\/ERR_CONNECTION_-REFUSED-vs-ERR_CONNECTION_-TIMED_OUT.jpg.webp 1600w, https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2023\/11\/ERR_CONNECTION_-REFUSED-vs-ERR_CONNECTION_-TIMED_OUT-300x177.jpg 300w, https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2023\/11\/ERR_CONNECTION_-REFUSED-vs-ERR_CONNECTION_-TIMED_OUT-1024x603.jpg 1024w, https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2023\/11\/ERR_CONNECTION_-REFUSED-vs-ERR_CONNECTION_-TIMED_OUT-768x452.jpg 768w, https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2023\/11\/ERR_CONNECTION_-REFUSED-vs-ERR_CONNECTION_-TIMED_OUT-1536x904.jpg 1536w, https:\/\/www.dreamhost.com\/blog\/wp-content\/smush-webp\/2023\/11\/ERR_CONNECTION_-REFUSED-vs-ERR_CONNECTION_-TIMED_OUT-600x353.jpg.webp 600w, https:\/\/www.dreamhost.com\/blog\/wp-content\/smush-webp\/2023\/11\/ERR_CONNECTION_-REFUSED-vs-ERR_CONNECTION_-TIMED_OUT-1200x707.jpg.webp 1200w, https:\/\/www.dreamhost.com\/blog\/wp-content\/smush-webp\/2023\/11\/ERR_CONNECTION_-REFUSED-vs-ERR_CONNECTION_-TIMED_OUT-730x430.jpg.webp 730w, https:\/\/www.dreamhost.com\/blog\/wp-content\/smush-webp\/2023\/11\/ERR_CONNECTION_-REFUSED-vs-ERR_CONNECTION_-TIMED_OUT-1460x860.jpg.webp 1460w, https:\/\/www.dreamhost.com\/blog\/wp-content\/smush-webp\/2023\/11\/ERR_CONNECTION_-REFUSED-vs-ERR_CONNECTION_-TIMED_OUT-784x462.jpg.webp 784w, https:\/\/www.dreamhost.com\/blog\/wp-content\/smush-webp\/2023\/11\/ERR_CONNECTION_-REFUSED-vs-ERR_CONNECTION_-TIMED_OUT-1568x923.jpg.webp 1568w, https:\/\/www.dreamhost.com\/blog\/wp-content\/smush-webp\/2023\/11\/ERR_CONNECTION_-REFUSED-vs-ERR_CONNECTION_-TIMED_OUT-877x516.jpg.webp 877w\" data-sizes=\"(max-width: 1600px) 100vw, 1600px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 1600px; --smush-placeholder-aspect-ratio: 1600\/942;\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">What Causes ERR_CONNECTION_REFUSED Errors?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">In almost every case, one of six things explains why the server is being so antisocial:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Nothing is listening.<\/strong> The web server software (like Apache or nginx) crashed, was stopped, or the whole machine is down.<\/li>\n\n\n\n<li><strong>The browser knocked on the wrong door.<\/strong> DNS (the system that translates domain names into IP addresses) still points at an old address, a common leftover after a site migration. If nothing on that old machine is listening anymore, the connection is refused.<\/li>\n\n\n\n<li><strong>A firewall said no.<\/strong> A server firewall rule or a security tool rejected the request \u2014 sometimes because it banned your specific IP address.<\/li>\n\n\n\n<li><strong>A port problem.<\/strong> The server accepts plain HTTP (port 80) but nothing is listening on HTTPS (port 443), or vice versa. This is often a misconfigured SSL setup or proxy.<\/li>\n\n\n\n<li><strong>Something on your device is interfering.<\/strong> A proxy, VPN, browser extension, antivirus web filter, or hosts-file entry is blocking or misrouting the connection.<\/li>\n\n\n\n<li><strong>It\u2019s localhost.<\/strong> You\u2019re a developer, and your local server isn\u2019t running (or it\u2019s running on a different port than the one in your address bar).<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">The troubleshooting process is really about figuring out which side answered \u201cno\u201d: the client side (your device or network) or the server side (the website itself).<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">What Does An ERR_CONNECTION_REFUSED Error Look Like?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">ERR_CONNECTION_REFUSED errors appear differently depending on your browser.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">On Google Chrome, you\u2019ll see an error page that reads, \u201cThis site can\u2019t be reached,\u201d with ERR_CONNECTION_REFUSED in small print near the bottom.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" width=\"1600\" height=\"1093\" data-src=\"https:\/\/www.dreamhost.com\/blog\/wp-content\/smush-webp\/2023\/11\/google-chrome-err-connection-refused-error-page.jpg.webp\" alt=\"screenshot of a &quot;this site can't be reached&quot; error in Google Chrome\" class=\"wp-image-42505 lazyload\" data-srcset=\"https:\/\/www.dreamhost.com\/blog\/wp-content\/smush-webp\/2023\/11\/google-chrome-err-connection-refused-error-page.jpg.webp 1600w, https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2023\/11\/google-chrome-err-connection-refused-error-page-300x205.jpg 300w, https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2023\/11\/google-chrome-err-connection-refused-error-page-1024x700.jpg 1024w, https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2023\/11\/google-chrome-err-connection-refused-error-page-768x525.jpg 768w, https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2023\/11\/google-chrome-err-connection-refused-error-page-1536x1049.jpg 1536w, https:\/\/www.dreamhost.com\/blog\/wp-content\/smush-webp\/2023\/11\/google-chrome-err-connection-refused-error-page-600x410.jpg.webp 600w, https:\/\/www.dreamhost.com\/blog\/wp-content\/smush-webp\/2023\/11\/google-chrome-err-connection-refused-error-page-1200x820.jpg.webp 1200w, https:\/\/www.dreamhost.com\/blog\/wp-content\/smush-webp\/2023\/11\/google-chrome-err-connection-refused-error-page-730x499.jpg.webp 730w, https:\/\/www.dreamhost.com\/blog\/wp-content\/smush-webp\/2023\/11\/google-chrome-err-connection-refused-error-page-1460x997.jpg.webp 1460w, https:\/\/www.dreamhost.com\/blog\/wp-content\/smush-webp\/2023\/11\/google-chrome-err-connection-refused-error-page-784x536.jpg.webp 784w, https:\/\/www.dreamhost.com\/blog\/wp-content\/smush-webp\/2023\/11\/google-chrome-err-connection-refused-error-page-1568x1071.jpg.webp 1568w, https:\/\/www.dreamhost.com\/blog\/wp-content\/smush-webp\/2023\/11\/google-chrome-err-connection-refused-error-page-877x599.jpg.webp 877w\" data-sizes=\"(max-width: 1600px) 100vw, 1600px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 1600px; --smush-placeholder-aspect-ratio: 1600\/1093;\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Mozilla Firefox shows a page titled \u201cUnable to connect,\u201d explaining that Firefox can\u2019t establish a connection to the server.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" width=\"1600\" height=\"1197\" data-src=\"https:\/\/www.dreamhost.com\/blog\/wp-content\/smush-webp\/2023\/11\/ERR_CONNECTION_REFUSED-in-firefox.jpg.webp\" alt=\"screenshot of a &quot;unable to connect&quot; error in Mozilla Firefox\" class=\"wp-image-42506 lazyload\" data-srcset=\"https:\/\/www.dreamhost.com\/blog\/wp-content\/smush-webp\/2023\/11\/ERR_CONNECTION_REFUSED-in-firefox.jpg.webp 1600w, https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2023\/11\/ERR_CONNECTION_REFUSED-in-firefox-300x224.jpg 300w, https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2023\/11\/ERR_CONNECTION_REFUSED-in-firefox-1024x766.jpg 1024w, https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2023\/11\/ERR_CONNECTION_REFUSED-in-firefox-768x575.jpg 768w, https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2023\/11\/ERR_CONNECTION_REFUSED-in-firefox-1536x1149.jpg 1536w, https:\/\/www.dreamhost.com\/blog\/wp-content\/smush-webp\/2023\/11\/ERR_CONNECTION_REFUSED-in-firefox-600x449.jpg.webp 600w, https:\/\/www.dreamhost.com\/blog\/wp-content\/smush-webp\/2023\/11\/ERR_CONNECTION_REFUSED-in-firefox-1200x898.jpg.webp 1200w, https:\/\/www.dreamhost.com\/blog\/wp-content\/smush-webp\/2023\/11\/ERR_CONNECTION_REFUSED-in-firefox-730x546.jpg.webp 730w, https:\/\/www.dreamhost.com\/blog\/wp-content\/smush-webp\/2023\/11\/ERR_CONNECTION_REFUSED-in-firefox-1460x1092.jpg.webp 1460w, https:\/\/www.dreamhost.com\/blog\/wp-content\/smush-webp\/2023\/11\/ERR_CONNECTION_REFUSED-in-firefox-784x587.jpg.webp 784w, https:\/\/www.dreamhost.com\/blog\/wp-content\/smush-webp\/2023\/11\/ERR_CONNECTION_REFUSED-in-firefox-1568x1173.jpg.webp 1568w, https:\/\/www.dreamhost.com\/blog\/wp-content\/smush-webp\/2023\/11\/ERR_CONNECTION_REFUSED-in-firefox-877x656.jpg.webp 877w\" data-sizes=\"(max-width: 1600px) 100vw, 1600px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 1600px; --smush-placeholder-aspect-ratio: 1600\/1197;\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Microsoft Edge keeps it casual: \u201cHmmm\u2026 can\u2019t reach this page.\u201d<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" width=\"1600\" height=\"1092\" data-src=\"https:\/\/www.dreamhost.com\/blog\/wp-content\/smush-webp\/2023\/11\/Microsoft-Edge-ERR_CONNECTION_REFUSED.jpg.webp\" alt=\"screenshot of a &quot;hmmm...can't reach this page&quot; error in Edge\" class=\"wp-image-42507 lazyload\" data-srcset=\"https:\/\/www.dreamhost.com\/blog\/wp-content\/smush-webp\/2023\/11\/Microsoft-Edge-ERR_CONNECTION_REFUSED.jpg.webp 1600w, https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2023\/11\/Microsoft-Edge-ERR_CONNECTION_REFUSED-300x205.jpg 300w, https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2023\/11\/Microsoft-Edge-ERR_CONNECTION_REFUSED-1024x699.jpg 1024w, https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2023\/11\/Microsoft-Edge-ERR_CONNECTION_REFUSED-768x524.jpg 768w, https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2023\/11\/Microsoft-Edge-ERR_CONNECTION_REFUSED-1536x1048.jpg 1536w, https:\/\/www.dreamhost.com\/blog\/wp-content\/smush-webp\/2023\/11\/Microsoft-Edge-ERR_CONNECTION_REFUSED-600x410.jpg.webp 600w, https:\/\/www.dreamhost.com\/blog\/wp-content\/smush-webp\/2023\/11\/Microsoft-Edge-ERR_CONNECTION_REFUSED-1200x819.jpg.webp 1200w, https:\/\/www.dreamhost.com\/blog\/wp-content\/smush-webp\/2023\/11\/Microsoft-Edge-ERR_CONNECTION_REFUSED-730x498.jpg.webp 730w, https:\/\/www.dreamhost.com\/blog\/wp-content\/smush-webp\/2023\/11\/Microsoft-Edge-ERR_CONNECTION_REFUSED-1460x996.jpg.webp 1460w, https:\/\/www.dreamhost.com\/blog\/wp-content\/smush-webp\/2023\/11\/Microsoft-Edge-ERR_CONNECTION_REFUSED-784x535.jpg.webp 784w, https:\/\/www.dreamhost.com\/blog\/wp-content\/smush-webp\/2023\/11\/Microsoft-Edge-ERR_CONNECTION_REFUSED-1568x1070.jpg.webp 1568w, https:\/\/www.dreamhost.com\/blog\/wp-content\/smush-webp\/2023\/11\/Microsoft-Edge-ERR_CONNECTION_REFUSED-877x599.jpg.webp 877w\" data-sizes=\"(max-width: 1600px) 100vw, 1600px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 1600px; --smush-placeholder-aspect-ratio: 1600\/1092;\" \/><\/figure>\n\n\n\n<h2 id=\"fix\" class=\"wp-block-heading\">How To Fix ERR_CONNECTION_REFUSED On Your Website<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Before you start digging around on your server, run a 10-second test: <strong>does the error appear only on your website, or on every site you visit?<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Only your site? Keep reading \u2014 the problem is probably server-side.<\/li>\n\n\n\n<li>Every site? You have a client-side problem. <a href=\"#visitor\">Skip down to the visitor fixes<\/a>.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">It also helps to load your site from a second device on a different network (a phone on mobile data works well). If it loads fine there, the problem may be local to your computer or network after all.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Check Whether Your Site Is Down For Everyone<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Start by confirming the outage is real. Paste your URL into a checker like Down for Everyone or Just Me (search \u201cis it down\u201d and you\u2019ll find several), or check your uptime monitoring tool if you use one. If a checker in another location also can\u2019t connect, your server (or something in front of it) is refusing everyone \u2014 time to work through the steps below.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Make Sure Your DNS Points To The Right Server<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">This one bites site owners right after a migration: your domain\u2019s DNS records still point at your <em>old<\/em> host\u2019s IP address. Visitors\u2019 browsers knock on a server that no longer runs your site. If nothing there is listening anymore, that server refuses the connection.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">To check, find the IP address your domain currently resolves to: run <code>nslookup yourdomain.com<\/code> in a terminal, or use any free online DNS lookup tool. Compare it against the IP address your host says your site lives on (you\u2019ll find that in your hosting panel). If they don\u2019t match, update your <a href=\"https:\/\/help.dreamhost.com\/hc\/en-us\/articles\/214694378-What-DreamHost-DNS-records-do-I-point-my-site-to-\" target=\"_blank\" rel=\"noopener\">DNS records<\/a> and give the change time to propagate.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Restart Or Check Your Web Server<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">If you run your own <a href=\"https:\/\/www.dreamhost.com\/hosting\/vps\/\">VPS<\/a> or dedicated server, check whether the web server software is actually running. On most Linux servers, <code>systemctl status nginx<\/code> or <code>systemctl status apache2<\/code> will tell you; a restart (<code>systemctl restart nginx<\/code>) often brings a crashed service back.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">While you\u2019re in there, look at your <a href=\"https:\/\/help.dreamhost.com\/hc\/en-us\/articles\/216512197-Viewing-your-access-and-error-logs-via-SFTP\" target=\"_blank\" rel=\"noopener\">error logs<\/a> for clues about <em>why<\/em> it stopped: a service that keeps dying is usually out of memory or misconfigured.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">On managed hosting, you can\u2019t restart the web server yourself, but your host can. Check their status page first, then open a ticket.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Look For Firewall Rules And IP Bans<\/h3>\n\n\n\n\n\n<div class=\"glossary-term\">\n\t<a\n\t\tclass=\"glossary-term__above-title\"\n\t\thref=\"\"\n\t\ttarget=\"_blank\"\n\t\trel=\"noopener noreferrer\"\n\t>\n\t\t<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 640 512\"><path d=\"M320 32c-8.1 0-16.1 1.4-23.7 4.1L15.8 137.4C6.3 140.9 0 149.9 0 160s6.3 19.1 15.8 22.6l57.9 20.9C57.3 229.3 48 259.8 48 291.9v28.1c0 28.4-10.8 57.7-22.3 80.8c-6.5 13-13.9 25.8-22.5 37.6C0 442.7-.9 448.3 .9 453.4s6 8.9 11.2 10.2l64 16c4.2 1.1 8.7 .3 12.4-2s6.3-6.1 7.1-10.4c8.6-42.8 4.3-81.2-2.1-108.7C90.3 344.3 86 329.8 80 316.5V291.9c0-30.2 10.2-58.7 27.9-81.5c12.9-15.5 29.6-28 49.2-35.7l157-61.7c8.2-3.2 17.5 .8 20.7 9s-.8 17.5-9 20.7l-157 61.7c-12.4 4.9-23.3 12.4-32.2 21.6l159.6 57.6c7.6 2.7 15.6 4.1 23.7 4.1s16.1-1.4 23.7-4.1L624.2 182.6c9.5-3.4 15.8-12.5 15.8-22.6s-6.3-19.1-15.8-22.6L343.7 36.1C336.1 33.4 328.1 32 320 32zM128 408c0 35.3 86 72 192 72s192-36.7 192-72L496.7 262.6 354.5 314c-11.1 4-22.8 6-34.5 6s-23.5-2-34.5-6L143.3 262.6 128 408z\"\/><\/svg>\n\t\t<span><\/span>\n\t\t<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 384 512\"><path d=\"M342.6 233.4c12.5 12.5 12.5 32.8 0 45.3l-192 192c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L274.7 256 105.4 86.6c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l192 192z\"\/><\/svg>\n\t<\/a>\n    <h3>Firewall<\/h3>\n    <p>A firewall is a set of rules that governs incoming and outgoing connections for a network or a specific device. The goal of firewalls is to protect against intrusions and unwanted outgoing connections.<\/p>\n            <a\n            href=\"https:\/\/www.dreamhost.com\/glossary\/hosting\/firewall\/\"\n                        class=\"btn btn--white-outline btn--sm btn--round\"\n                                    target=\"_blank\"\n            rel=\"noopener noreferrer\"\n            >\n                            Read More                    <\/a>\n\n<\/div>\n\n\n\n<p class=\"wp-block-paragraph\">A firewall rule that rejects traffic on the web ports (80 and 443) will refuse every visitor. (Rules that silently <em>drop<\/em> traffic cause timeouts instead.) A sneakier variant: security tools like fail2ban, and some WordPress security plugins that write firewall-level rules, can ban <em>individual<\/em> IP addresses after repeated failed logins. If the site works for everyone except you, you may have locked yourself out.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">One myth worth clearing up: an ordinary buggy plugin or theme generally produces a <a href=\"https:\/\/www.dreamhost.com\/blog\/500-internal-server-error\/\">500 error<\/a> or a blank page, not ERR_CONNECTION_REFUSED. By the time a plugin runs, your connection is already established. So if you\u2019re seeing refused connections, look at the firewall and network layer first. The exception is exactly the case above: security plugins that write server firewall rules. You can also ask your host to check whether a <a href=\"https:\/\/help.dreamhost.com\/hc\/en-us\/articles\/215947927-Enabling-the-Web-Application-Firewall\" target=\"_blank\" rel=\"noopener\">web application firewall<\/a> is filtering traffic.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Check Your CDN Or Proxy Configuration<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">If a <a href=\"https:\/\/www.dreamhost.com\/glossary\/hosting\/cdn\/\">CDN (content delivery network)<\/a> or proxy like Cloudflare sits in front of your site, pay attention to which error visitors actually see. If the CDN proxy is active but can\u2019t reach your origin server, visitors typically get a CDN-branded error page instead (Cloudflare\u2019s \u201cError 521: Web server is down,\u201d for example). Visitors see ERR_CONNECTION_REFUSED when they\u2019re hitting your origin directly: a paused CDN or a DNS-only (\u201cgray cloud\u201d) record with nothing listening at the origin, or an origin address pointing at the wrong port.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Either way, the test is the same: temporarily bypass the CDN (most have a \u201cpause\u201d or development mode) and load the origin directly. If the origin responds fine, fix the CDN configuration; if it doesn\u2019t, the problem is on your server.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Get In Touch With Your Host<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">If you\u2019ve worked through everything above and the error persists, contact your web host\u2019s support team. They can see server logs, load, and firewall state that you can\u2019t, and they\u2019ll spot problems on their side (like a machine-level outage) immediately.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Send them the exact error, when it started, and what you\u2019ve already tried. Folks who host with <a href=\"https:\/\/www.dreamhost.com\/\">DreamHost<\/a> can reach our support team 24\/7, including via <a href=\"https:\/\/help.dreamhost.com\/hc\/en-us\/articles\/215027768--Contacting-DreamHost-via-Live-Chat\" target=\"_blank\" rel=\"noopener\">live chat<\/a>, and our experts can diagnose <a href=\"https:\/\/www.dreamhost.com\/blog\/common-wordpress-errors\/\">strange errors<\/a> at the server level.<\/p>\n\n\n\n<h2 id=\"visitor\" class=\"wp-block-heading\">How To Fix ERR_CONNECTION_REFUSED As A Visitor<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Seeing this error on sites you don\u2019t own, or on every site? Then the fix is on your side. Work through these steps in order; they\u2019re sorted from quick checks to last resorts.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Delete Your Browsing Data<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">An easy place to start is clearing your <a href=\"https:\/\/www.dreamhost.com\/blog\/a-comprehensive-guide-to-website-caching\/\">browser cache<\/a> and <a href=\"https:\/\/www.dreamhost.com\/glossary\/hosting\/cookies\/\">cookies<\/a>. Here\u2019s why it can matter for this error: your browser caches more than files. It also caches redirects. A stale cached redirect pointing at an address or port where nothing is listening can keep reproducing this error until you clear it.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">In Chrome, the option is now called <strong>Delete browsing data<\/strong>:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Click the three dots to the right of the address bar.<\/li>\n\n\n\n<li>Select <strong>Delete browsing data<\/strong>.<\/li>\n\n\n\n<li>Pick a time range (choose <strong>All time<\/strong> under <strong>More<\/strong> for a full cleanout).<\/li>\n\n\n\n<li>Check <strong>Cookies and other site data<\/strong> and <strong>Cached images and files<\/strong>, then click the delete button (labeled <strong>Delete data<\/strong>, or <strong>Delete from this device<\/strong> if you\u2019re signed in to Chrome).<\/li>\n<\/ol>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" width=\"568\" height=\"590\" data-src=\"https:\/\/www.dreamhost.com\/blog\/wp-content\/smush-webp\/2026\/07\/chrome-delete-browsing-data-2026.png.webp\" alt=\"Screenshot of Chrome's Delete browsing data dialog with Cookies and other site data and Cached images and files selected\" class=\"wp-image-85675 lazyload\" data-srcset=\"https:\/\/www.dreamhost.com\/blog\/wp-content\/smush-webp\/2026\/07\/chrome-delete-browsing-data-2026.png.webp 568w, https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2026\/07\/chrome-delete-browsing-data-2026-289x300.png 289w\" data-sizes=\"(max-width: 568px) 100vw, 568px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 568px; --smush-placeholder-aspect-ratio: 568\/590;\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Then reload the page. (Here\u2019s how to <a href=\"https:\/\/help.dreamhost.com\/hc\/en-us\/articles\/216456827-How-to-clear-your-browser-s-cache\" target=\"_blank\" rel=\"noopener\">clear the cache in other browsers<\/a>.)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Check Your Internet Connection<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">An unreliable connection can produce all kinds of errors, including this one. If you\u2019re at home, glance at your router: red or unlit status lights usually mean the connection itself is down. Restart the router, wait a couple of minutes, and try again \u2014 then contact your ISP if it doesn\u2019t recover.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Not near the router? Run a quick speed test instead: search Google for \u201cspeed test\u201d and use the built-in tool. If other devices on the same network load pages fine, the problem is probably your device, not the connection.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Restart Your Device<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Sometimes all you need is a reboot. Restarting your computer, phone, or tablet clears temporary network state, including the local <a href=\"https:\/\/help.dreamhost.com\/hc\/en-us\/articles\/214981288-Flushing-your-DNS-cache-in-Mac-OS-X-and-Linux\" target=\"_blank\" rel=\"noopener\">DNS resolver cache<\/a>, which can hold stale entries that block a site.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">(You can also flush the DNS cache manually without a restart \u2014 on Windows, run <code>ipconfig \/flushdns<\/code>; on macOS, <code>sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder<\/code>.)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Try A Different DNS Server<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">If a reboot didn\u2019t help, your DNS server itself might be the problem. Your device usually uses your ISP\u2019s DNS by default; switching to a public DNS server is a quick way to rule it out.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">On <strong>Windows 11<\/strong>:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Open <strong>Settings<\/strong> &gt; <strong>Network &amp; internet<\/strong>.<\/li>\n\n\n\n<li>Click your active connection. For Wi-Fi, open <strong>Hardware properties<\/strong>; for Ethernet, the settings appear directly.<\/li>\n\n\n\n<li>Next to <strong>DNS server assignment<\/strong>, click <strong>Edit<\/strong>, switch to <strong>Manual<\/strong>, turn on IPv4, and enter a public DNS address from the list below.<\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">On older Windows versions, the same setting lives in the Control Panel: Network and Sharing Center &gt; your connection &gt; Properties &gt; Internet Protocol Version 4, shown below.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" width=\"1600\" height=\"1280\" data-src=\"https:\/\/www.dreamhost.com\/blog\/wp-content\/smush-webp\/2023\/11\/06c-windows-dns-configuration.jpg.webp\" alt=\"A screen-to-screen flow of the workflow to reset the DNS server in windows\" class=\"wp-image-42509 lazyload\" data-srcset=\"https:\/\/www.dreamhost.com\/blog\/wp-content\/smush-webp\/2023\/11\/06c-windows-dns-configuration.jpg.webp 1600w, https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2023\/11\/06c-windows-dns-configuration-300x240.jpg 300w, https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2023\/11\/06c-windows-dns-configuration-1024x819.jpg 1024w, https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2023\/11\/06c-windows-dns-configuration-768x614.jpg 768w, https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2023\/11\/06c-windows-dns-configuration-1536x1229.jpg 1536w, https:\/\/www.dreamhost.com\/blog\/wp-content\/smush-webp\/2023\/11\/06c-windows-dns-configuration-600x480.jpg.webp 600w, https:\/\/www.dreamhost.com\/blog\/wp-content\/smush-webp\/2023\/11\/06c-windows-dns-configuration-1200x960.jpg.webp 1200w, https:\/\/www.dreamhost.com\/blog\/wp-content\/smush-webp\/2023\/11\/06c-windows-dns-configuration-730x584.jpg.webp 730w, https:\/\/www.dreamhost.com\/blog\/wp-content\/smush-webp\/2023\/11\/06c-windows-dns-configuration-1460x1168.jpg.webp 1460w, https:\/\/www.dreamhost.com\/blog\/wp-content\/smush-webp\/2023\/11\/06c-windows-dns-configuration-784x627.jpg.webp 784w, https:\/\/www.dreamhost.com\/blog\/wp-content\/smush-webp\/2023\/11\/06c-windows-dns-configuration-1568x1254.jpg.webp 1568w, https:\/\/www.dreamhost.com\/blog\/wp-content\/smush-webp\/2023\/11\/06c-windows-dns-configuration-877x702.jpg.webp 877w\" data-sizes=\"(max-width: 1600px) 100vw, 1600px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 1600px; --smush-placeholder-aspect-ratio: 1600\/1280;\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">On <strong>macOS<\/strong> (Ventura or later):<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Open <strong>System Settings<\/strong> &gt; <strong>Network<\/strong>.<\/li>\n\n\n\n<li>Select your active connection and click <strong>Details\u2026<\/strong><\/li>\n\n\n\n<li>Open the <strong>DNS<\/strong> tab and add a public DNS address with the <strong>+<\/strong> button.<\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">Popular public DNS options:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Google Public DNS:<\/strong> 8.8.8.8 or 8.8.4.4<\/li>\n\n\n\n<li><strong>Cloudflare DNS:<\/strong> 1.1.1.1 or 1.0.0.1<\/li>\n\n\n\n<li><strong>OpenDNS Home:<\/strong> 208.67.222.222 or 208.67.220.220<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">If this fixes the problem, you can keep the new DNS server or contact your ISP about their resolver acting up.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">(Temporarily) Disable Your Security Software<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Firewalls and antivirus software keep you safe \u2014 but an overzealous one can block connections it shouldn\u2019t. To test, briefly disable it and reload the page.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">If you\u2019re using the built-in firewall on <strong>Windows 11<\/strong>:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Head to <strong>Settings<\/strong> &gt; <strong>Privacy &amp; security<\/strong> &gt; <strong>Windows Security<\/strong>.<\/li>\n\n\n\n<li>Click <strong>Firewall &amp; network protection<\/strong>.<\/li>\n\n\n\n<li>Select your active network profile and switch <strong>Microsoft Defender Firewall<\/strong> off.<\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">On <strong>macOS<\/strong>, the firewall lives in <strong>System Settings<\/strong> &gt; <strong>Network<\/strong> &gt; <strong>Firewall<\/strong>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Don\u2019t leave it off! If the page loads with the firewall disabled, turn the firewall back on and add the site to its allow list instead.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Check Proxy And VPN Settings<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Proxies and VPNs route your traffic through another server \u2014 and when that server (or its configuration) breaks, connections get refused. A leftover <a href=\"https:\/\/help.dreamhost.com\/hc\/en-us\/articles\/217955787-Proxy-Server\" target=\"_blank\" rel=\"noopener\">proxy setting<\/a> from old software is a classic culprit.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">To check on <strong>Windows 11<\/strong>: open <strong>Settings<\/strong> &gt; <strong>Network &amp; internet<\/strong> &gt; <strong>Proxy<\/strong>, and make sure no manual proxy is enabled (unless you set one up on purpose).<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">On <strong>macOS<\/strong>: open <strong>System Settings<\/strong> &gt; <strong>Network<\/strong>, select your connection, click <strong>Details\u2026<\/strong>, and open the <strong>Proxies<\/strong> tab. Uncheck any protocols you don\u2019t recognize, and click <strong>OK<\/strong>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">If you use a <a href=\"https:\/\/help.dreamhost.com\/hc\/en-us\/articles\/360003505791-VPN-overview\" target=\"_blank\" rel=\"noopener\">VPN<\/a>, try disconnecting it for a moment. If the site loads without it, switch VPN servers or report the issue to the provider. Don\u2019t just browse unprotected if you rely on it for privacy.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Disable Browser Extensions<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Ad blockers, tracking-protection extensions, and VPN plug-ins can inadvertently block access to certain sites.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">To test in Chrome:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Click the three dots in the top-right corner.<\/li>\n\n\n\n<li>Go to <strong>Extensions<\/strong> &gt; <strong>Manage Extensions<\/strong>.<\/li>\n\n\n\n<li>Toggle each extension off (or click <strong>Remove<\/strong> on anything you don\u2019t recognize).<\/li>\n\n\n\n<li>Reload the page. If it works, re-enable extensions one at a time to find the troublemaker.<\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">Once you\u2019ve found the culprit, check its settings for a site allow list before you resort to uninstalling it.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Take A Peek At Your Hosts File<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Every operating system has a hosts file that maps hostnames (like DreamHost.com) to IP addresses. It\u2019s mostly harmless, but some apps (and some malware) use it to block or redirect specific domains. If a site is listed there, your browser may never reach the real server.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">On <strong>Windows<\/strong>: open the Start menu, type \u201cNotepad,\u201d right-click it and choose <strong>Run as administrator<\/strong>. Then go to <strong>File<\/strong> &gt; <strong>Open<\/strong> and browse to <code>C:WindowsSystem32driversetchosts<\/code>.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" width=\"1600\" height=\"1274\" data-src=\"https:\/\/www.dreamhost.com\/blog\/wp-content\/smush-webp\/2023\/11\/windows-host-files.jpg.webp\" alt=\"screenshot of the notepad open file, file name location of hosts files in Windows\" class=\"wp-image-42511 lazyload\" data-srcset=\"https:\/\/www.dreamhost.com\/blog\/wp-content\/smush-webp\/2023\/11\/windows-host-files.jpg.webp 1600w, https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2023\/11\/windows-host-files-300x239.jpg 300w, https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2023\/11\/windows-host-files-1024x815.jpg 1024w, https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2023\/11\/windows-host-files-768x612.jpg 768w, https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2023\/11\/windows-host-files-1536x1223.jpg 1536w, https:\/\/www.dreamhost.com\/blog\/wp-content\/smush-webp\/2023\/11\/windows-host-files-600x478.jpg.webp 600w, https:\/\/www.dreamhost.com\/blog\/wp-content\/smush-webp\/2023\/11\/windows-host-files-1200x956.jpg.webp 1200w, https:\/\/www.dreamhost.com\/blog\/wp-content\/smush-webp\/2023\/11\/windows-host-files-730x581.jpg.webp 730w, https:\/\/www.dreamhost.com\/blog\/wp-content\/smush-webp\/2023\/11\/windows-host-files-1460x1163.jpg.webp 1460w, https:\/\/www.dreamhost.com\/blog\/wp-content\/smush-webp\/2023\/11\/windows-host-files-784x624.jpg.webp 784w, https:\/\/www.dreamhost.com\/blog\/wp-content\/smush-webp\/2023\/11\/windows-host-files-1568x1249.jpg.webp 1568w, https:\/\/www.dreamhost.com\/blog\/wp-content\/smush-webp\/2023\/11\/windows-host-files-877x698.jpg.webp 877w\" data-sizes=\"(max-width: 1600px) 100vw, 1600px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 1600px; --smush-placeholder-aspect-ratio: 1600\/1274;\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">On <strong>macOS and Linux<\/strong>: the file lives at <code>\/etc\/hosts<\/code>. You can open it with any text editor, but saving changes requires admin rights \u2014 the simplest route is a terminal command like <code>sudo nano \/etc\/hosts<\/code>.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" width=\"1600\" height=\"1041\" data-src=\"https:\/\/www.dreamhost.com\/blog\/wp-content\/smush-webp\/2023\/11\/mac-host-files.jpg.webp\" alt=\"sceenshot of the private\/etc\/hosts file in Mac\" class=\"wp-image-42512 lazyload\" data-srcset=\"https:\/\/www.dreamhost.com\/blog\/wp-content\/smush-webp\/2023\/11\/mac-host-files.jpg.webp 1600w, https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2023\/11\/mac-host-files-300x195.jpg 300w, https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2023\/11\/mac-host-files-1024x666.jpg 1024w, https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2023\/11\/mac-host-files-768x500.jpg 768w, https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2023\/11\/mac-host-files-1536x999.jpg 1536w, https:\/\/www.dreamhost.com\/blog\/wp-content\/smush-webp\/2023\/11\/mac-host-files-600x390.jpg.webp 600w, https:\/\/www.dreamhost.com\/blog\/wp-content\/smush-webp\/2023\/11\/mac-host-files-1200x781.jpg.webp 1200w, https:\/\/www.dreamhost.com\/blog\/wp-content\/smush-webp\/2023\/11\/mac-host-files-730x475.jpg.webp 730w, https:\/\/www.dreamhost.com\/blog\/wp-content\/smush-webp\/2023\/11\/mac-host-files-1460x950.jpg.webp 1460w, https:\/\/www.dreamhost.com\/blog\/wp-content\/smush-webp\/2023\/11\/mac-host-files-784x510.jpg.webp 784w, https:\/\/www.dreamhost.com\/blog\/wp-content\/smush-webp\/2023\/11\/mac-host-files-1568x1020.jpg.webp 1568w, https:\/\/www.dreamhost.com\/blog\/wp-content\/smush-webp\/2023\/11\/mac-host-files-877x571.jpg.webp 877w\" data-sizes=\"(max-width: 1600px) 100vw, 1600px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 1600px; --smush-placeholder-aspect-ratio: 1600\/1041;\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Look for lines containing the domain you\u2019re trying to reach. If you find one you didn\u2019t add, delete the line, save the file, and reload the page. (On a stock, non-rooted phone, you can\u2019t edit the hosts file \u2014 skip this step on mobile.)<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">While you\u2019re at it: developers also use hosts-file entries on purpose, for example to <a href=\"https:\/\/help.dreamhost.com\/hc\/en-us\/articles\/115006086308-View-your-DreamHost-site-using-a-hosts-file\" target=\"_blank\" rel=\"noopener\">preview a site before DNS changes<\/a>. A forgotten preview entry is a classic source of mystery connection errors.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Reinstall Your Browser<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Still stuck? A corrupted browser installation can cause connection issues that settings changes can\u2019t fix. Back up your bookmarks and saved passwords, uninstall the browser completely, restart your computer, and download a fresh copy from the official site.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">If a clean install doesn\u2019t help, the problem almost certainly lies elsewhere \u2014 most likely your network setup or the website\u2019s server.<\/p>\n\n\n\n<h2 id=\"localhost\" class=\"wp-block-heading\">How To Fix \u201cLocalhost Refused To Connect\u201d<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Seeing <strong>localhost refused to connect<\/strong> while developing? This is the same error with a much shorter suspect list: your own computer refused the connection, which almost always means no server is listening on the port you requested.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" width=\"800\" height=\"520\" data-src=\"https:\/\/www.dreamhost.com\/blog\/wp-content\/smush-webp\/2026\/07\/localhost-refused-to-connect-err-connection-refused.png.webp\" alt=\"Chrome error page reading 'This site can't be reached \u2014 localhost refused to connect. ERR_CONNECTION_REFUSED'\" class=\"wp-image-85676 lazyload\" data-srcset=\"https:\/\/www.dreamhost.com\/blog\/wp-content\/smush-webp\/2026\/07\/localhost-refused-to-connect-err-connection-refused.png.webp 800w, https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2026\/07\/localhost-refused-to-connect-err-connection-refused-300x195.png 300w, https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2026\/07\/localhost-refused-to-connect-err-connection-refused-768x499.png 768w, https:\/\/www.dreamhost.com\/blog\/wp-content\/smush-webp\/2026\/07\/localhost-refused-to-connect-err-connection-refused-600x390.png.webp 600w, https:\/\/www.dreamhost.com\/blog\/wp-content\/smush-webp\/2026\/07\/localhost-refused-to-connect-err-connection-refused-730x475.png.webp 730w, https:\/\/www.dreamhost.com\/blog\/wp-content\/smush-webp\/2026\/07\/localhost-refused-to-connect-err-connection-refused-784x510.png.webp 784w\" data-sizes=\"(max-width: 800px) 100vw, 800px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 800px; --smush-placeholder-aspect-ratio: 800\/520;\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Run through these checks:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Is your local server actually running?<\/strong> Start (or restart) your dev server \u2014 whether that\u2019s <code>npm run dev<\/code>, <code>php -S<\/code>, or the Apache\/MySQL services in a tool like XAMPP, MAMP, or Local.<\/li>\n\n\n\n<li><strong>Are you using the right port?<\/strong> Check your server\u2019s startup output for the port it chose (for example, <code>localhost:3000<\/code> vs. <code>localhost:5173<\/code>) and make sure your address bar matches.<\/li>\n\n\n\n<li><strong>Is another app squatting on the port?<\/strong> On macOS\/Linux, <code>lsof -i :3000<\/code> shows what\u2019s using a port; on Windows, try <code>netstat -ano | findstr :3000<\/code>. Stop the conflicting process or move your server to another port.<\/li>\n\n\n\n<li><strong>On a Mac, check AirPlay.<\/strong> macOS\u2019s AirPlay Receiver feature listens on ports 5000 and 7000, which collides with common dev servers (Flask defaults to 5000). Turn it off under <strong>System Settings<\/strong> &gt; <strong>General<\/strong> &gt; <strong>AirDrop &amp; Handoff<\/strong>.<\/li>\n\n\n\n<li><strong>Try 127.0.0.1 instead of localhost.<\/strong> Some setups resolve <code>localhost<\/code> to the IPv6 address <code>::1<\/code> while the server only listens on IPv4. If <code>127.0.0.1:3000<\/code> works but <code>localhost:3000<\/code> doesn\u2019t, that\u2019s your clue.<\/li>\n\n\n\n<li><strong>Check your firewall.<\/strong> Security software occasionally blocks local connections, too \u2014 the same temporary-disable test from above applies.<\/li>\n<\/ul>\n\n\n\n<h2 id=\"related\" class=\"wp-block-heading\">ERR_CONNECTION_REFUSED Vs. Related Errors<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Browsers report connection failures with a family of similar-sounding errors, and each one points to a different cause. Here\u2019s the map:<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>Error<\/th><th>What actually happened<\/th><th>Guide<\/th><\/tr><\/thead><tbody><tr><td>ERR_CONNECTION_REFUSED<\/td><td>The server (or a firewall) actively rejected the connection<\/td><td>You\u2019re reading it<\/td><\/tr><tr><td>ERR_CONNECTION_TIMED_OUT<\/td><td>No answer at all \u2014 the request just expired<\/td><td><a href=\"https:\/\/www.dreamhost.com\/blog\/err-connection-timed-out\/\">How to fix ERR_CONNECTION_TIMED_OUT<\/a><\/td><\/tr><tr><td>ERR_CONNECTION_RESET<\/td><td>The connection was established, then abruptly cut off (reset) before the page finished loading<\/td><td><a href=\"https:\/\/www.dreamhost.com\/blog\/err-connection-reset\/\">How to fix ERR_CONNECTION_RESET<\/a><\/td><\/tr><tr><td>ERR_CONNECTION_CLOSED<\/td><td>The server hung up after the conversation began<\/td><td><a href=\"https:\/\/www.dreamhost.com\/blog\/err-connection-closed\/\">How to fix ERR_CONNECTION_CLOSED<\/a><\/td><\/tr><tr><td>DNS_PROBE_FINISHED_NXDOMAIN<\/td><td>The domain name couldn\u2019t be found in DNS at all<\/td><td><a href=\"https:\/\/www.dreamhost.com\/blog\/dns-probe-finished-nxdomain\/\">How to fix DNS_PROBE_FINISHED_NXDOMAIN<\/a><\/td><\/tr><tr><td>DNS server not responding<\/td><td>Your DNS resolver is unreachable<\/td><td><a href=\"https:\/\/www.dreamhost.com\/blog\/dns-server-not-responding\/\">How to fix DNS server not responding<\/a><\/td><\/tr><tr><td>500 \/ 503 \/ 504 errors<\/td><td>The server was reached \u2014 it just errored while responding<\/td><td><a href=\"https:\/\/www.dreamhost.com\/blog\/500-internal-server-error\/\">500<\/a>, <a href=\"https:\/\/www.dreamhost.com\/blog\/503-service-unavailable-error\/\">503<\/a>, <a href=\"https:\/\/www.dreamhost.com\/blog\/fixing-504-gateway-timeout-error\/\">504<\/a><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">The rule of thumb: <em>refused<\/em> means something answered \u201cno,\u201d <em>timed out<\/em> means nothing answered, and numbered HTTP errors mean the server answered but couldn\u2019t deliver the page.<\/p>\n\n\n\n<h2 id=\"faq\" class=\"wp-block-heading\">ERR_CONNECTION_REFUSED FAQ<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">Is ERR_CONNECTION_REFUSED a problem with my device or the website?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">It can be either. If only one site fails, the problem is usually on the site\u2019s server. If many sites fail, the cause is on your side \u2014 typically your network, DNS, proxy, firewall, or a browser extension.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Is ERR_CONNECTION_REFUSED an HTTP error code?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">No. The connection is rejected at the network level, before any HTTP request is sent, so no HTTP status code (like 404 or 500) is ever produced. That\u2019s also why server-side scripts, plugins, and CMS settings are rarely the cause.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">What\u2019s the difference between ERR_CONNECTION_REFUSED and ERR_CONNECTION_TIMED_OUT?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Refused means the target actively rejected the connection \u2014 something was there to say \u201cno.\u201d Timed out means the request got no answer at all before the browser gave up, which usually points to an unreachable server or a silently dropping firewall.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Does ERR_CONNECTION_REFUSED mean I\u2019ve been blocked or banned?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Usually not \u2014 most cases are server outages or local network problems. But it\u2019s possible: security tools can ban individual IP addresses after repeated failed logins. If a site works from another network (like mobile data) but not from yours, an IP ban is a real suspect.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Why does localhost refuse to connect?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Because nothing on your computer is listening on that port. Start your development server, confirm the port number in its startup output matches your address bar, and check for port conflicts \u2014 on a Mac, the AirPlay Receiver occupies ports 5000 and 7000.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">How do I fix ERR_CONNECTION_REFUSED on my Android phone?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Toggle airplane mode on and off, switch between Wi-Fi and mobile data to isolate the network, and delete your browser\u2019s cache and cookies. Also check <strong>Settings<\/strong> &gt; <strong>Network &amp; internet<\/strong> &gt; <strong>Private DNS<\/strong> \u2014 a broken private DNS hostname breaks loading on every site.<\/p>\n\n\n\n<h2 id=\"summary\" class=\"wp-block-heading\">Fix Errors Faster With DreamHost<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">We\u2019ve covered a lot of troubleshooting in this guide \u2014 but you rarely need every step. Two quick tests point you to the right section:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Error on <strong>one<\/strong> website only? It\u2019s probably server-side. If it\u2019s your site, start with DNS, the web server, and the firewall.<\/li>\n\n\n\n<li>Errors on <strong>multiple<\/strong> sites? It\u2019s almost certainly client-side. Start with your browser data, DNS settings, and extensions.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">And if it\u2019s your website refusing connections, you don\u2019t have to figure it out alone. Every <a href=\"https:\/\/www.dreamhost.com\/hosting\/\">DreamHost hosting plan<\/a> includes 24\/7 support from our in-house experts \u2014 we\u2019ll help you track down exactly why your server is turning visitors away and get it back online.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Sound good? <a href=\"https:\/\/www.dreamhost.com\/hosting\/\">Sign up for hosting today<\/a> and see for yourself.<\/p>\n\n\n\n<div class=\"article-newsletter article-newsletter--gradient\">\n\n\n<h2>Get Content Delivered Straight to Your Inbox<\/h2><p>Subscribe now to receive all the latest updates, delivered directly to your inbox.<\/p><form class=\"nwsl-form\" id=\"newsletter_block_\" novalidate><div class=\"messages\"><\/div><div class=\"form-group\"><label for=\"input_newsletter_block_\"><input type=\"email\"name=\"email\"id=\"input_newsletter_block_\"placeholder=\"Enter your email address\"novalidatedisabled=\"disabled\"\/><\/label><button type=\"submit\"class=\"btn btn--brand\"disabled=\"disabled\"><span>Sign Me Up!<\/span><svg width=\"21\" height=\"14\" viewBox=\"0 0 21 14\" fill=\"none\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\">\n<path d=\"M13.8523 0.42524L12.9323 1.34521C12.7095 1.56801 12.7132 1.9304 12.9404 2.14865L16.7241 5.7823H0.5625C0.251859 5.7823 0 6.03416 0 6.3448V7.6573C0 7.96794 0.251859 8.2198 0.5625 8.2198H16.7241L12.9405 11.8535C12.7132 12.0717 12.7095 12.4341 12.9323 12.6569L13.8523 13.5769C14.072 13.7965 14.4281 13.7965 14.6478 13.5769L20.8259 7.39879C21.0456 7.17913 21.0456 6.82298 20.8259 6.60327L14.6477 0.42524C14.4281 0.205584 14.0719 0.205584 13.8523 0.42524Z\" fill=\"white\"\/>\n<\/svg>\n<\/button><\/div><\/form><\/div>","protected":false},"excerpt":{"rendered":"<p>Oh no. You\u2019re trying to load a page, but all you get is an ERR_CONNECTION_REFUSED error message. The good news: this error has a short list of causes, and you can test for each one. Sometimes the problem lives on your device: a bad browser extension, a misbehaving proxy, or a stale DNS setting. Sometimes [&hellip;]<\/p>\n","protected":false},"author":1036,"featured_media":42483,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_yoast_wpseo_opengraph-title":"How To Fix ERR_CONNECTION_REFUSED","_yoast_wpseo_opengraph-description":"ERR_CONNECTION_REFUSED means the server actively refused the connection. Learn the causes and the fixes for visitors, site owners, and developers.","_yoast_wpseo_twitter-title":"How To Fix ERR_CONNECTION_REFUSED","_yoast_wpseo_twitter-description":"ERR_CONNECTION_REFUSED means the server actively refused the connection. Learn the causes and the fixes for visitors, site owners, and developers.","toc_headlines":"[[\"definition\", \"What Is The ERR_CONNECTION_REFUSED Error?\"], [\"fix\", \"How To Fix ERR_CONNECTION_REFUSED On Your Website\"], [\"visitor\", \"How To Fix ERR_CONNECTION_REFUSED As A Visitor\"], [\"localhost\", \"How To Fix \u201cLocalhost Refused To Connect\u201d\"], [\"related\", \"ERR_CONNECTION_REFUSED Vs. Related Errors\"], [\"faq\", \"ERR_CONNECTION_REFUSED FAQ\"], [\"summary\", \"Fix Errors Faster With DreamHost\"]]","hide_toc":false,"show_updated_at":"1","footnotes":""},"categories":[13127,550,696],"tags":[],"class_list":["post-42481","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-errors-troubleshooting","category-tutorials","category-wordpress"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v26.3 (Yoast SEO v28.1) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>ERR_CONNECTION_REFUSED: How To Fix It - DreamHost<\/title>\n<meta name=\"description\" content=\"ERR_CONNECTION_REFUSED means the server actively refused the connection. Learn the causes and the fixes for visitors, site owners, and developers.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.dreamhost.com\/blog\/how-to-fix-connection-refused-error\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How To Fix ERR_CONNECTION_REFUSED\" \/>\n<meta property=\"og:description\" content=\"ERR_CONNECTION_REFUSED means the server actively refused the connection. Learn the causes and the fixes for visitors, site owners, and developers.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.dreamhost.com\/blog\/how-to-fix-connection-refused-error\/\" \/>\n<meta property=\"og:site_name\" content=\"DreamHost Blog\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/DreamHost\/\" \/>\n<meta property=\"article:published_time\" content=\"2026-07-09T21:52:56+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-07-09T22:47:45+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2023\/11\/How-to-Fix-the-ERR_CONNECTION_REFUSED-Error-SOCIAL-Image.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"628\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Luke Odom\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:title\" content=\"How To Fix ERR_CONNECTION_REFUSED\" \/>\n<meta name=\"twitter:description\" content=\"ERR_CONNECTION_REFUSED means the server actively refused the connection. Learn the causes and the fixes for visitors, site owners, and developers.\" \/>\n<meta name=\"twitter:creator\" content=\"@dreamhost\" \/>\n<meta name=\"twitter:site\" content=\"@dreamhost\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Luke Odom\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"16 minutes\" \/>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"ERR_CONNECTION_REFUSED: How To Fix It - DreamHost","description":"ERR_CONNECTION_REFUSED means the server actively refused the connection. Learn the causes and the fixes for visitors, site owners, and developers.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.dreamhost.com\/blog\/how-to-fix-connection-refused-error\/","og_locale":"en_US","og_type":"article","og_title":"How To Fix ERR_CONNECTION_REFUSED","og_description":"ERR_CONNECTION_REFUSED means the server actively refused the connection. Learn the causes and the fixes for visitors, site owners, and developers.","og_url":"https:\/\/www.dreamhost.com\/blog\/how-to-fix-connection-refused-error\/","og_site_name":"DreamHost Blog","article_publisher":"https:\/\/www.facebook.com\/DreamHost\/","article_published_time":"2026-07-09T21:52:56+00:00","article_modified_time":"2026-07-09T22:47:45+00:00","og_image":[{"width":1200,"height":628,"url":"https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2023\/11\/How-to-Fix-the-ERR_CONNECTION_REFUSED-Error-SOCIAL-Image.jpg","type":"image\/jpeg"}],"author":"Luke Odom","twitter_card":"summary_large_image","twitter_title":"How To Fix ERR_CONNECTION_REFUSED","twitter_description":"ERR_CONNECTION_REFUSED means the server actively refused the connection. Learn the causes and the fixes for visitors, site owners, and developers.","twitter_creator":"@dreamhost","twitter_site":"@dreamhost","twitter_misc":{"Written by":"Luke Odom","Est. reading time":"16 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.dreamhost.com\/blog\/how-to-fix-connection-refused-error\/#article","isPartOf":{"@id":"https:\/\/www.dreamhost.com\/blog\/how-to-fix-connection-refused-error\/"},"author":{"name":"Luke Odom","@id":"https:\/\/www.dreamhost.com\/blog\/#\/schema\/person\/89b848f30904144bdbed4743605a55db"},"headline":"How To Fix ERR_CONNECTION_REFUSED","datePublished":"2026-07-09T21:52:56+00:00","dateModified":"2026-07-09T22:47:45+00:00","mainEntityOfPage":{"@id":"https:\/\/www.dreamhost.com\/blog\/how-to-fix-connection-refused-error\/"},"wordCount":3238,"publisher":{"@id":"https:\/\/www.dreamhost.com\/blog\/#organization"},"image":{"@id":"https:\/\/www.dreamhost.com\/blog\/how-to-fix-connection-refused-error\/#primaryimage"},"thumbnailUrl":"https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2023\/11\/How-to-Fix-the-ERR_CONNECTION_REFUSED-Error-HERO-Image.jpg","articleSection":["Errors &amp; Troubleshooting","Tutorials","WordPress"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/www.dreamhost.com\/blog\/how-to-fix-connection-refused-error\/","url":"https:\/\/www.dreamhost.com\/blog\/how-to-fix-connection-refused-error\/","name":"ERR_CONNECTION_REFUSED: How To Fix It - DreamHost","isPartOf":{"@id":"https:\/\/www.dreamhost.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.dreamhost.com\/blog\/how-to-fix-connection-refused-error\/#primaryimage"},"image":{"@id":"https:\/\/www.dreamhost.com\/blog\/how-to-fix-connection-refused-error\/#primaryimage"},"thumbnailUrl":"https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2023\/11\/How-to-Fix-the-ERR_CONNECTION_REFUSED-Error-HERO-Image.jpg","datePublished":"2026-07-09T21:52:56+00:00","dateModified":"2026-07-09T22:47:45+00:00","description":"ERR_CONNECTION_REFUSED means the server actively refused the connection. Learn the causes and the fixes for visitors, site owners, and developers.","breadcrumb":{"@id":"https:\/\/www.dreamhost.com\/blog\/how-to-fix-connection-refused-error\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.dreamhost.com\/blog\/how-to-fix-connection-refused-error\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.dreamhost.com\/blog\/how-to-fix-connection-refused-error\/#primaryimage","url":"https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2023\/11\/How-to-Fix-the-ERR_CONNECTION_REFUSED-Error-HERO-Image.jpg","contentUrl":"https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2023\/11\/How-to-Fix-the-ERR_CONNECTION_REFUSED-Error-HERO-Image.jpg","width":1460,"height":1095,"caption":"a man on a tablet looking a bit concerned with a solid pink background and err_connection_refused icons all around him"},{"@type":"BreadcrumbList","@id":"https:\/\/www.dreamhost.com\/blog\/how-to-fix-connection-refused-error\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.dreamhost.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How To Fix ERR_CONNECTION_REFUSED"}]},{"@type":"WebSite","@id":"https:\/\/www.dreamhost.com\/blog\/#website","url":"https:\/\/www.dreamhost.com\/blog\/","name":"DreamHost Blog","description":"","publisher":{"@id":"https:\/\/www.dreamhost.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.dreamhost.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.dreamhost.com\/blog\/#organization","name":"DreamHost","url":"https:\/\/www.dreamhost.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.dreamhost.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/dhblog.dream.press\/blog\/wp-content\/uploads\/2019\/01\/dh_logo-blue-2.png","contentUrl":"https:\/\/dhblog.dream.press\/blog\/wp-content\/uploads\/2019\/01\/dh_logo-blue-2.png","width":1200,"height":168,"caption":"DreamHost"},"image":{"@id":"https:\/\/www.dreamhost.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/DreamHost\/","https:\/\/x.com\/dreamhost","https:\/\/www.instagram.com\/dreamhost\/","https:\/\/www.linkedin.com\/company\/dreamhost\/","https:\/\/www.youtube.com\/user\/dreamhostusa"]},{"@type":"Person","@id":"https:\/\/www.dreamhost.com\/blog\/#\/schema\/person\/89b848f30904144bdbed4743605a55db","name":"Luke Odom","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/c56e64d8cecd561c4e2cb65fc16717105fc6d29044bbd8c78cbd4619a31e7098?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/c56e64d8cecd561c4e2cb65fc16717105fc6d29044bbd8c78cbd4619a31e7098?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/c56e64d8cecd561c4e2cb65fc16717105fc6d29044bbd8c78cbd4619a31e7098?s=96&d=mm&r=g","caption":"Luke Odom"},"description":"Luke is the Director of IT Operations. He is responsible for the teams that keep operations running smoothly... In his free time, he enjoys reading fantasy\/sci-fi and hanging out with his wife and 4 kids. Connect with Luke on LinkedIn: https:\/\/www.linkedin.com\/in\/luke-odom-039986a\/","url":"https:\/\/www.dreamhost.com\/blog\/author\/dreamhostluke\/"}]}},"lang":"en","translations":{"en":42481,"es":42515,"pt":52920,"de":52923,"pl":56283,"ru":56292,"uk":56298,"it":68036,"fr":69657,"nl":69688},"pll_sync_post":{},"_links":{"self":[{"href":"https:\/\/www.dreamhost.com\/blog\/wp-json\/wp\/v2\/posts\/42481","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.dreamhost.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.dreamhost.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.dreamhost.com\/blog\/wp-json\/wp\/v2\/users\/1036"}],"version-history":[{"count":0,"href":"https:\/\/www.dreamhost.com\/blog\/wp-json\/wp\/v2\/posts\/42481\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.dreamhost.com\/blog\/wp-json\/wp\/v2\/media\/42483"}],"wp:attachment":[{"href":"https:\/\/www.dreamhost.com\/blog\/wp-json\/wp\/v2\/media?parent=42481"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.dreamhost.com\/blog\/wp-json\/wp\/v2\/categories?post=42481"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.dreamhost.com\/blog\/wp-json\/wp\/v2\/tags?post=42481"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}