speedtest-cli
speedtest-cli copied to clipboard
Self Hosted Error with private server
Hi All,
Just to get it out there if you get the following error message when attempting to test with your own self-hosted librespeedtest instance:
Selected server <YourServerInfo> is not responding at the moment, try again later
The fix is just to add the "backend/" to the variables with the php files, I did not figure this out on my own, it was posted [HERE] by @fmolinelli (https://github.com/librespeed/speedtest-cli/issues/27)
[
{
"id": 0,
"name": "<Name>",
"server": "http://URL or IP/",
"dlURL": "backend/**garbage.php",
"ulURL": "backend/empty.php",
"pingURL": "backend/empty.php",
"getIpURL": "backend/getIP.php"
}
]
Did you get this working?
Yes after adding the backend the CLI started to work correctly
why would you put ** before garbage.php ? i get better results without this
Hi All,
Just to get it out there if you get the following error message when attempting to test with your own self-hosted librespeedtest instance:
Selected server is not responding at the moment, try again later
The fix is just to add the "backend/" to the variables with the php files, I did not figure this out on my own, it was posted [HERE] by @fmolinelli (#27)
[ { "id": 0, "name": "<Name>", "server": "http://URL or IP/", "dlURL": "backend/**garbage.php", "ulURL": "backend/empty.php", "pingURL": "backend/empty.php", "getIpURL": "backend/getIP.php" } ]
Optimize it:
[
{
"id": 0,
"name": "<Name>",
"server": "http://URL or IP/backend/",
"dlURL": "garbage.php",
"ulURL": "empty.php",
"pingURL": "empty.php",
"getIpURL": "getIP.php"
}
]
echo '[{"id": 1,"name": "a","server": "http://192.168.10.191:3888/backend/","dlURL": "garbage.php","ulURL": "empty.php","pingURL": "empty.php","getIpURL": "getIP.php"}]' | librespeed-cli --local-json - --server 1