Skip to content

Speedtest

tl;dr: speedtest results are not accurate without adjustement

Slow network - Wrong speedtest results (Portugal only)

  • Your test server MUST BE in Portugal
  • For some IP ranges, Speedtest sets the test servers in Cyprus

Why? And how to fix?

  • Speedtest sets the test server location based on the ISP location, not the actual datacenter location
  • Since the ISP is registered in Cyprus, Speedtest will run the test over the distance of 3800km, instead of 5km
  • To fix this, you need to manually select a test server in Portugal

Before update (default)

Test server is in Cyprus, 3800km away Speedtest

Updated ISP country to Portugal

After updating to datacenter country, the speedtest results are accurate Speedtest

CLI test: Linux server (update test server location)

# Remove old speedtest-cli
apt-get remove -y speedtest-cli

# Install dependencies
apt install gnupg1 apt-transport-https dirmngr -y

# Install official Ookla speedtest
curl -s https://packagecloud.io/install/repositories/ookla/speedtest-cli/script.deb.sh | bash
sudo apt-get install speedtest

# Run it
speedtest --server-id=44427

Find server id

Get the current list of servers in Portugal. Change the search parameter to find any other location

# Install curl and jq
apt install curl jq -y
# Get list of servers in Lisbon
curl -s "https://www.speedtest.net/api/js/servers?engine=js&https_functional=true&limit=1000&search=Lisbon"   | jq '.[] | {id, sponsor, name}'