speedtest-go icon indicating copy to clipboard operation
speedtest-go copied to clipboard

server is useless with default config

Open ciupicri opened this issue 1 year ago • 3 comments

Description

Maybe I'm misunderstanding something, but I was under the impression that software can be used as a local test server, not just a web page with a list of other test servers.

Server

1.1.5 with no custom settings

Client

firefox-116.0-2.fc38.x86_64

Steps to reproduce

  • Download speedtest-go_1.1.5_linux_amd64.tar.gz
  • Unarchive file, e.g. tar xzf speedtest-go_1.1.5_linux_amd64.tar.gz
  • Run ./speedtest-backend
  • Go to http://127.0.0.1:8989/

Expected behaviour

A web based test using this server

Screenshots

LibreSpeed Example

No servers available

ciupicri avatar Aug 08 '23 17:08 ciupicri

did you find the correct settings?

garci66 avatar Nov 01 '23 14:11 garci66

If you open the client browser and select any of the other "files" ... like http://:8989/example-singleServer-chart.html then it works. I noticed there is a commit that replaced the index.html for a "good one" but its not in release 1.1.5 but newere. Could we get a newere build?

garci66 avatar Nov 01 '23 15:11 garci66

I've just cloned the repository (commit 7001fa4fa52945cbc6d4c32200bbcce7bbf6145c), compiled the project with go build -ldflags "-w -s" -trimpath -o speedtest main.go then I run ./speedtest.

Next I've started a browser (Firefox) and voilà, it seems I was able to run a local test at address http://127.0.0.1:8989/

ciupicri avatar Nov 01 '23 22:11 ciupicri