Networking tools are essential for diagnosing connectivity issues and monitoring server traffic. This guide explains how to use ping, netstat, and ss on Ubuntu servers.
ping google.com
Sends ICMP packets to check if a host is reachable.
ping -c 4 8.8.8.8
Sends 4 packets to Google’s DNS server.
sudo netstat -tulnp
Displays all active TCP/UDP connections and listening ports.
sudo netstat -an | grep ESTABLISHED
Shows established connections only.
ss -tulwn
Lists all listening ports with protocol details.
ss -s
Displays a summary of socket statistics.
traceroute google.com
Shows the path packets take to reach a destination (install with sudo apt install traceroute -y).
dig hostpalace.com
Queries DNS records for a domain (install with sudo apt install dnsutils -y).
Note: HostPalace servers are globally connected, and these tools help clients troubleshoot and secure their networking effectively.