Skip to main content

Networking Overview

Debugging network issues from the command line.

Diagnostic Commands

ping google.com           # Test connectivity
curl -I https://example.com # HTTP headers
ss -tlnp # Listening ports
netstat -rn # Routing table
dig example.com # DNS lookup
traceroute example.com # Route tracing

Checking Open Ports

ss -tlnp | grep 3000
lsof -i :3000