ERR_CONNECTION_REFUSED when changed domain name
I set up my Django website and everything was working fine with the temporary domain name provided by linode: … members.linode.com
I followed every step with registrar and added the domain name in linode. I performed some tests ("nc -zv" and "curl -sIL"), and everything works fine, but I keep getting the error ERR_CONNECTION_REFUSED.
1 Reply
There are a few potential causes for a connection refused error. There could be a firewall in place preventing access to the web server ports, or the web server may not be running even if the Linode is accessible. If your nc -zv
output showed that your web server was listening on the correct ports, you may want to run an nmap -p 80,443 <ipAddress>
from outside of your Linode to confirm that those ports are accessible to the outside world. I'd also suggest making sure that your DNS records (especially your A record) are correct and that the DNS change has had time to propagate. This StackOverflow post has some additional troubleshooting tips that you may find helpful, especially with regards to firewall and port issues.