Troubleshooting Network Connectivity Issues

Troubleshooting Network Connectivity Issues

A systematic approach to diagnosing why your server or service is unreachable.

Step 1 — Can You Ping the Server?

ping -c 4 YOUR_SERVER_IP
  • If ping succeeds: the server is online. The issue is service-level.
  • If ping fails: the server may be down, the IP is wrong, or ICMP is blocked by firewall.

Step 2 — Trace the Network Path

traceroute YOUR_SERVER_IP    # Linux/macOS
# or:
mtr YOUR_SERVER_IP           # Better live traceroute (apt install mtr)

Look for where packets stop responding — that indicates the problem hop.

Step 3 — Is the Service Listening?

ss -tulpn | grep 80    # Is Nginx listening on port 80?

Step 4 — Is the Firewall Blocking It?

ufw status                    # Check UFW rules
iptables -L -n -v | head -30  # Raw iptables rules

Step 5 — Test Port Connectivity from Outside

nc -zv YOUR_SERVER_IP 80    # Test TCP port 80

Step 6 — Check DNS Resolution

dig yourdomain.com
nslookup yourdomain.com

Compare the resolved IP with your server's actual IP.

Step 7 — Check Service Logs

journalctl -u nginx -n 50
tail -f /var/log/nginx/error.log

Step 8 — Review Network Interface Stats

ip -s link show eth0

Look at RX/TX error and drop counts — high numbers indicate a hardware or driver problem.

  • 0 Los usuarios encontraron esto útil
¿Le ha resultado útil esta respuesta?

Artículos relacionados

Understanding Your Server's Network Configuration

Understanding Your Server's Network Configuration Knowing how to read and manage your server's...

Setting Up Reverse DNS (rDNS/PTR Record)

Setting Up Reverse DNS (rDNS / PTR Record) A reverse DNS (PTR) record maps your IP address back...

How to Configure a Static IP Address on Linux

Configuring a Static IP Address on Linux Dedicated servers typically have a static IP configured...

Setting Up Nginx as a Reverse Proxy

Setting Up Nginx as a Reverse Proxy A reverse proxy forwards incoming requests to a backend...

How to Configure DNS Records for Your Domain

Configuring DNS Records for Your Domain DNS records tell the internet how to reach your domain....