Applies to: OpenSpeedTest (Docker image openspeedtest/latest) on any Linux VPS or dedicated server with Docker
OpenSpeedTest is a free, open-source speed test that runs in the browser. Hosting it on your own server lets you measure the real speed between your users (or your office) and that server, instead of to some random test server. We ran the official Docker image and opened it in a browser.
1. Install Docker
If Docker isn’t installed yet, follow Docker’s instructions for your distribution, or on Ubuntu run sudo apt install docker.io.
2. Start OpenSpeedTest
sudo docker run -d --name openspeedtest --restart unless-stopped -p 3000:3000 openspeedtest/latest
Open http://SERVER-IP:3000 in a browser and click Start. It measures download, upload and ping between your browser and the server.
3. Open the port
sudo ufw allow 3000/tcp # Ubuntu, Debian sudo firewall-cmd --permanent --add-port=3000/tcp && sudo firewall-cmd --reload # AlmaLinux, Rocky Linux
Use your own domain with HTTPS
Put a reverse proxy in front of it (see Apache as a reverse proxy), point speed.example.com to the server, and get a free certificate. If you do, allow large uploads in the proxy (for example client_max_body_size 35m; in Nginx), or the upload test fails.
Reading the results
- The result is the speed between your connection and the server, so it is limited by the slower of the two.
- Wi-Fi, VPNs and browser extensions lower the results; test on a cable for the most accurate figures.
- Compare a few runs at different times of day.
Update or remove
sudo docker pull openspeedtest/latest && sudo docker rm -f openspeedtest # then run step 2 again sudo docker rm -f openspeedtest # remove
Testing speed between two servers from the command line instead: test internet speed bidirectionally.