Prerequisites
Before testing network speed, make sure you have:
- SSH access to your VPS
- iperf3 installed (or second server for accurate testing)
Method 1: Internet Speed Test (speedtest-cli)
Connect to your VPS:
ssh hxroot@YOUR_SERVER_IP -p 22
sudo apt install speedtest-cli -y
speedtest-cli
Simple output:
speedtest-cli --simple
Method 2: Local Network Speed Test (iperf3)
Install iperf3:
sudo apt install iperf3 -y
On the server (listening):
iperf3 -s
On the client (another VPS or local machine):
iperf3 -c YOUR_SERVER_IP
Method 3: Test Upload Speed with iperf3 (Reverse Mode)
iperf3 -c YOUR_SERVER_IP -R
Method 4: Test with Parallel Connections (10 streams)
iperf3 -c YOUR_SERVER_IP -P 10
Method 5: Test for 60 Seconds
iperf3 -c YOUR_SERVER_IP -t 60
Using Public iperf Servers
Example with public server:
iperf3 -c iperf.he.net
Or:
iperf3 -c speedtest.tele2.net -p 5201
Test UDP Performance (for streaming applications)
iperf3 -c YOUR_SERVER_IP -u -b 100M
Check Network Latency
ping -c 10 google.com
mtr -r google.com
Interpret Results
- Gigabit VPS – Should see 800-950 Mbps
- 10Gbps VPS – 3-9 Gbps depending on CPU
- Good for web hosting – at least 100 Mbps
✅ Network speed test completed.