How to test your server network connectivity
Updated 10/23/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
How to find your IP address on Windows: public and local
Find your public IP address in a second and your local IP from Settings, Command Prompt or PowerShell, on Windows 10 and 11.
Updated 10/23/2026Networking & DNSHow to find your IP address on Linux: public and local
Find your public and local IP address on Linux: ip addr, hostname -I, GNOME Settings and the right way on a headless server.
Updated 10/23/2026Networking & DNSEmail DNS records: SPF, DKIM and DMARC
Set up SPF, DKIM and DMARC so your emails reach the inbox, not spam.
Updated 10/23/2026