How to test your server network connectivity
Updated 7/20/2026
When a service does not respond, a few simple commands tell you whether the problem is the network, DNS or the application.
1. ping: is the server reachable?
ping -c 4 example.com
2. traceroute: where does traffic get stuck?
traceroute example.com
3. dig: does DNS answer correctly?
dig example.com +short
4. curl: does the web service respond?
curl -I https://example.com
The HTTP/2 200 header means the server responds correctly.
5. ss: what is listening on the server?
ss -tulnp
How to interpret
- ping fails but curl works: ICMP is probably blocked, not a real problem.
- dig does not return the right IP: a DNS problem, see DNS propagation.
- the port does not appear in ss: the service is not running or listens on another address.
- everything works locally but not from outside: check the firewall.
Put this guide into practice on your own VPS
EU cloud servers, billed hourly, ready in minutes, with one-click installs for dozens of apps.
See pricingRelated tutorials
Networking & DNS
Email DNS records: SPF, DKIM and DMARC
Set up SPF, DKIM and DMARC so your emails reach the inbox, not spam.
Updated 7/20/2026Networking & DNSHow to connect two servers over a private network
Link your servers through an encrypted WireGuard tunnel, so they communicate securely without exposing services to the internet.
Updated 7/20/2026Networking & DNSWhat is a CDN and when you need one
A CDN delivers content close to visitors, faster. Here is how it works and when it is worth it.
Updated 7/20/2026