Troubleshooting guide
ERR_UNSAFE_PORT: how to fix it
Chrome refuses to load web pages from certain port numbers that belong to other protocols, such as 25 (SMTP), 6667 (IRC) or 5060 (SIP), to stop websites from abusing them.
3 min read10 sectionsUpdated
On this page
Is it your device, your network or the site?
Work outward in three quick tests. First, open the same address on another device on the same network: if it fails there too, your device is not the cause. Second, switch that device to another network, such as mobile data: if it now works, the problem is your Wi-Fi, router, DNS or a filter on that network. Third, check the site from outside with an independent checker: if it fails from there as well, the site itself is down and only its owner can fix it. Write down the exact error code at each step; support teams can act on ERR_... codes far faster than on "it does not load".
How site owners catch this before visitors do
Most visitors who hit ERR_UNSAFE_PORT leave without telling you. An uptime check every minute, with a keyword assertion on the page and an SSL check on every run, turns this from a support ticket into an alert. Keep the history: errors that come and go (one region, one server behind a load balancer, one in twenty requests) only make sense on a timeline. Put the result on a status page so people stop guessing. You can test any address now with the free website down checker.
Which ports are blocked?
Ports used by other protocols, including 1, 7, 21, 22, 25, 110, 143, 6000, 6665-6669 and 10080, among others.
Is my server broken?
No; the browser refuses that port. curl will still reach it.
Should I use the flag in production?
No, move the service to a normal port.
Related reading
- ERR_BLOCKED_BY_CLIENT: how to fix it: Fix net::ERR_BLOCKED_BY_CLIENT: ad blockers and privacy extensions blocking scripts, images and API calls, and how developers avoid false blocks.
- ERR_ADDRESS_UNREACHABLE: how to fix it: Fix ERR_ADDRESS_UNREACHABLE: no route to the server, wrong IP in DNS, IPv6 problems, private addresses and firewalls, for visitors and server owners.
- ERR_INTERNET_DISCONNECTED: how to fix it: Fix ERR_INTERNET_DISCONNECTED in Chrome: reconnect Wi-Fi, check the router, disable proxies and VPNs, reset network settings, and when apps say offline.
- ERR_CONNECTION_CLOSED: how to fix it: Fix ERR_CONNECTION_CLOSED: servers closing connections early, TLS problems, firewalls, crashing apps and proxy timeouts, with checks for site owners.
- NET::ERR_CERT_REVOKED: how to fix it: Fix NET::ERR_CERT_REVOKED: why a certificate authority revokes certificates, how browsers learn about it, and how site owners replace a revoked certificate.
- ERR_CONNECTION_RESET: causes and how to fix it: Fix ERR_CONNECTION_RESET: crashed backends, firewalls and antivirus resetting traffic, MTU problems and keep-alive races, for both visitors and site owners.
Watch your own site and services with VitalRix
Uptime checks, APM, logs, real-user monitoring, alerts and status pages in one place. Every product has a free tier and no credit card is needed.