Work from the bottom up:
- DNS:
dig +short namegives the right IP? - Routing / reachability:
ping,mtr(may be blocked, so continue anyway). - Port reachable:
nc -vz name 443orTest-NetConnection name -Port 443from outside. Timeout = a firewall drops it (cloud security rules or the host's); connection refused = nothing listens or the host firewall rejects. - Is the service listening on the right address:
sudo ss -tlnp? - Host firewall:
sudo iptables -S INPUT/ufw status. On cloud VMs also the provider's security list. - Application:
curl -v, the service logs (journalctl -u name), a certificate that does not match the name. - Resource problem: disk full, out of memory, a crashed process.
Change one thing at a time and write down what you tried.