Ping Works, but Is HTTPS Port 443 Open? Network Triage
System DesignModel answerLast updated
Decide whether a reply to ping proves a server's HTTPS port is usable, and explain how to test the port and narrow down where a failure occurs.
You are on call and a colleague says: "The server answers ping, so HTTPS must be fine."
Answer the following:
- Does a successful ping guarantee that TCP port 443 on that server can be reached from your machine? Explain why or why not.
- Describe the situation in the opposite direction: can port 443 work even when ping fails?
- Explain how you would check from your own machine whether port 443 is reachable, and how you would read each possible outcome (connected, refused, timed out).
- If the port turns out to be unreachable, outline a systematic way to find where the problem is.
State any assumptions you make about the environment, for example firewalls, cloud security groups, NAT or load balancers between you and the server, and whether "accessible" means only that a TCP connection opens or that HTTPS actually answers correctly.
Hints
Hint 1
Ping uses ICMP echo, which is not TCP or UDP and has no port number. Consider what that implies about what it can prove.
Hint 2
List everything that must be true for a connection to port 443 to succeed: a route, permissive filtering on the path and host, any NAT or load balancer forwarding, and a process listening on the port.
Hint 3
Different failures look different: an immediate reset, a hang until timeout, and a successful TCP connection followed by a failed TLS handshake each point to a different layer.
Model answer
Easy Try it yourself first — then compare your approach, complexity and edge cases.
Short answer
No. A successful ping shows only that ICMP echo requests reach the host and replies come back. It says nothing definitive about TCP port 443.
Why ping is not enough
- Different protocol and layer. Ping uses ICMP, which sits alongside TCP and UDP on top of IP and has no concept of ports. Port 443 is a TCP concept (or UDP for HTTP/3). Reaching the host at the IP layer does not show that a TCP handshake to a port will succeed.
- Filtering is usually per protocol and port. Firewalls, cloud security groups and network ACLs often allow ICMP while permitting only specific ports. A rule set that allows ping and blocks 443 is common, for instance on a host that is intentionally not serving web traffic to your network.
- A service must be listening. Even with an open path, the port is usable only if a process (nginx, a load balancer, an application server) is bound to it. If nothing listens, the OS answers with a TCP reset.
- Forwarding devices can differ. A load balancer, NAT or reverse proxy may answer ping on one address while forwarding 443 to a backend that is down, or may forward only specific ports. The device that replies to ping may not be the one that handles HTTPS.
- Application health is a further step. Even if TCP connects, the TLS handshake can fail (expired or mismatched certificate, protocol or cipher mismatch, SNI required) or the application can return errors.
The reverse case
Ping can fail while 443 works. Many networks and cloud providers drop ICMP echo by default, and some hosts disable replies. Ping is therefore a weak health signal in both directions: a reply does not prove the service is up, and silence does not prove it is down. Use it only as a hint about basic IP connectivity.
How to test the port directly
Test with a TCP connection from the machine whose perspective matters.
# Simple TCP connect test
nc -vz example.com 443
# Alternative with timeout
timeout 5 bash -c '</dev/tcp/example.com/443' && echo open || echo closed
# Scan a single port, showing state
nmap -Pn -p 443 example.com
# Windows PowerShell
Test-NetConnection example.com -Port 443
# Go one layer higher: TLS handshake and HTTP response
openssl s_client -connect example.com:443 -servername example.com
curl -vI https://example.com/
Interpreting results
| Result | Meaning |
|---|---|
| Connection succeeds | Path is open and something is listening. TCP-level reachability is confirmed. |
| Connection refused (immediate RST) | Packets reach the host, but nothing listens on 443, or a firewall actively rejects. The network path is probably fine. |
| Timeout (no answer) | Packets are likely dropped silently by a firewall or security group, the route is broken, or the host is down. Commonly a filtering problem. |
| TCP connects, TLS fails | Network is fine. Look at certificates, SNI, protocol versions, or the terminating proxy. |
| TLS succeeds, HTTP errors | The transport works. The problem is in the application or backend. |
nmap reports open, closed (refused) and filtered (no reply), which map to the three cases above.
Localizing a failure
Work outward from the client, one layer at a time.
- Name resolution. Check
dig example.comornslookup. Make sure you are testing the IP you expect, including IPv4 versus IPv6. - Local side. Rule out a local firewall, VPN, proxy settings or corporate egress policy. Try the same test from another network or from a phone hotspot.
- Path. Use
tracerouteormtr, preferably TCP mode (traceroute -T -p 443), since ICMP and UDP probes may be treated differently from real traffic. Note where responses stop. - Server-side network controls. Check cloud security groups, network ACLs, host firewall rules (
iptables,nftables,ufw, Windows Firewall) and any load balancer listener configuration. - Listening service. On the server, run
ss -ltnp | grep :443to confirm a process is bound, and to which address (a service bound only to127.0.0.1is unreachable from outside). - Packet capture. Run
tcpdump -ni any port 443on the server while testing. If SYN packets arrive and no SYN-ACK leaves, the problem is the host or its firewall. If nothing arrives, the problem is upstream. - Higher layers. If TCP connects, inspect the certificate chain, SNI, TLS versions and application logs.
Common mistakes
- Treating ping as proof of service health, or its failure as proof of an outage.
- Testing only from the server itself (via localhost), which hides external filtering and bind-address problems.
- Confusing "refused" with "timed out". Refused means something actively answered. A timeout usually means silent dropping.
- Forgetting that the answer depends on the source: a port can be open to one network and filtered for another.
- Ignoring IPv6, where a AAAA record may point to a host with different firewall rules.
- Stopping at TCP connect when the real question is whether HTTPS works.
Summary
Ping verifies basic IP reachability and ICMP policy only. To establish that port 443 is accessible, attempt a TCP connection to it from the relevant client, then a TLS handshake and an HTTP request, and use the pattern of success, reset or timeout to decide which layer to investigate.