librespeed / speedtest-cli

Command line client for LibreSpeed
GNU Lesser General Public License v3.0
517 stars 64 forks source link

Self Hosted Error with private server #82

Open ParadigmITOps opened 10 months ago

ParadigmITOps commented 10 months ago

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 (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"
  }
]
tomsik-radek commented 9 months ago

Did you get this working?

ParadigmITOps commented 9 months ago

Yes after adding the backend the CLI started to work correctly

rafipiccolo commented 4 months ago

why would you put ** before garbage.php ? i get better results without this

AndrewGoal commented 4 months ago

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