What the Error Means
Chrome and other Chromium-based browsers show "This site can't be reached" and "refused to connect" with the code ERR_
If You See It on Someone Else's Site
- Check the address: a wrong port number or http instead of https can point at a closed port.
- Turn off a proxy or VPN for one test: a proxy set in the browser or system that is not running refuses the connection itself.
- Try another network: if the site opens elsewhere, a local filter blocks it. Otherwise, tell the site owner.
Is the Service Running?
systemctl status nginx
sudo journalctl -u nginx -n 50 --no-pagerUse apache2 on Debian and Ubuntu or httpd on AlmaLinux and Rocky Linux for Apache, or the name of your application's service. If it failed to start, the journal shows why, often a configuration error or a port that another program holds. Check the configuration with sudo nginx -t or sudo apachectl configtest, then start it with sudo systemctl start nginx.
Is It Listening on the Right Port and Address?
sudo ss -ltnp | grep -E ':80 |:443 'A web server should show 0.0.0.0:80 and 0.0.0.0:443, or the IPv6 form. Three findings are common:
- Only 127.0.0.1: the service accepts local connections only; see what is localhost and change its listen address.
- Port 80 but not 443: the browser asks for HTTPS, often because the site sent HSTS earlier, and nothing answers on 443. Add an HTTPS server block with a certificate.
- An application on port 3000 or 8080: visitors use 80 and 443, so put a reverse proxy such as Nginx in front of it.
Test from the Server Itself
curl -I http://127.0.0.1/
curl -I --resolve example.com:443:127.0.0.1 https://example.com/If these work on the server but the browser is refused from outside, the service is fine and something between the internet and the service blocks it: a firewall, or the service listening on loopback only.
Firewall Rules
Keep your SSH rule in place, keep your current session open, and test each change from a second SSH session. On Ubuntu and Debian with ufw:
sudo ufw status verbose
sudo ufw allow 80/tcp
sudo ufw allow 443/tcpOn AlmaLinux and Rocky Linux with firewalld:
sudo firewall-cmd --list-all
sudo firewall-cmd --permanent --add-service=http --add-service=https
sudo firewall-cmd --reloadA rule that rejects traffic produces a refusal; a rule that drops it produces a timeout. Also check any firewall in your provider's control panel.
DNS Points to Another Server
dig +short example.com A
dig +short example.com AAAA
ip -4 addr showCompare the answers with the server's own addresses. After a migration, the A record often still holds the old server's IP, where nothing listens any more. A stale AAAA record can send visitors on IPv6 to an address that refuses. Correct the records; resolvers pick up the change when the old TTL runs out.
Confirm the Fix
curl -v https://example.com/Run it from another machine. A line saying curl connected, followed by a status line, means the port is open and answering. If the connection now hangs instead of being refused, a firewall drops the traffic; behind a CDN that shows as error 522. For the codes themselves, see HTTP status codes explained.
Updated:
Linux VPS with Full Root Access
MUVCloud cloud servers run on KVM with Enterprise NVMe SSD storage and full root access, in Turkey, the Netherlands, and the USA.
More Guides
No Limits on Service or Support
You are not on your own as your projects grow. Our support engineers are ready 24/7, on several channels, whenever you need them.

- 100% customer satisfaction goal
- Our own hardware
- 24/7 ticket and email support
- 4 countries with locations