veso266 / Flash-Speedtest.net-by-Ookla

This is Ooklas old Flash based Speedtest the best speedtest that ever existed
7 stars 0 forks source link

Servers list #4

Open Stun3 opened 6 months ago

Stun3 commented 6 months ago

Hey guys, I was wondering if its possible to retrieve a list of new servers in .xml file format for my website (https://stun3.github.io/speedtest/) Thanks

veso266 commented 6 months ago

hmm, this are the only new servers left that will surly work: https://www.speedtest.net/speedtest-servers-static.php

the new servers the new speedtest is using are here: https://www.speedtest.net/api/js/servers?engine=js&limit=10&https_functional=true (you would need to convert them from json to xml)

not sure if they still work (if server protocol didnt change they should)

Stun3 commented 6 months ago

Thanks, but for some reason my speedtest hosted on github pages ignores the server list and only shows some servers. Do you have discord?

veso266 commented 6 months ago

We can talk here, thats why issues are for. This also means that you and I can read eachothers messages when we have time and also means others that might have the same problem can see a solution

Hmm thats odd

Did u check with network inspector where the serverlist is pulled from? If it only shows some servers its possible its still pulling them from: speedtest.net not ur servers.xml

Stun3 commented 6 months ago

Nope, sorry I don't know how to use a network inspector. Thinking about that, it's possible its pulling from the speedtest.net not from my servers.xml. Going to the https://www.speedtest.net/speedtest-servers-static.php website shows servers close to me, and it does the same for my friends (showing close servers to them). This same thing happens in my speedtest website.

Stun3 commented 6 months ago

Nevermind, I fixed it by copying the server.xml file contents into these 2 files: speedtest-servers-static.php speedtest-servers.php and also by removing the first line < ?xml version="1.0" encoding="UTF-8"? > (without the spaces before the > and after the < from the beginning of the XML file before copying it

Stun3 commented 6 months ago

I still have one problem tho, when i try to do a test on a WORKING server (its from the same provider and location in the new speedtest) it returns with a Latency Test Error. maybe you know why? Thanks

filmdestruction commented 3 months ago

Hey stun3, looks like your website is working now. Thank you both veso266 for providing the code, and thank you stun3 for having a website up goodwebsite

Stun3 commented 3 months ago

Yeah, I made the whole website unlike some other guys here only making a index.html with the flash player, but thanks veso266 for most of the code!

Also, Report any dead servers to me include: server name and country the host (the thing saying hosted by: someone) send to email: stunhp@gmail.com i will check out the servers and remove them if they dont work

Also 2: thanks to @filmdestruction for keeping the old speedtest alive much much thanks to @veso266 for finding the code and posting it to github

Stun3 commented 3 months ago

Screenshot 2024-05-31 205252 It's running very well there a few things that needs fixing -automatic IP address and ISP detection -some of the servers work on the new speedtest but not on this one

veso266 commented 3 months ago

I like ur website, you even made ads (maybe its better to dont use real ones so okkla wouldnt think u make money and complain)

Regarding ur automatic isp and ip detection Sadly github only allows client code

But u could make a network request from javascript to here: https://ipinfo.io/ and get ip and isp that way, then once u get that load speedtest swf

Stun3 commented 3 months ago

I didn't add the ads, I downloaded all of your code on github, took The last website\speedtest\c.speedtest.net ,edited the index.html so that the flash player isn't buggy, edited the server list because GitHub pages was having problems with it being normal. However, using ublock origin on the firefox portable made the speedtest website look kinda empty without ads.

Regarding the isp and ip detection, well I can't code or anything so I don't know how to make that :D But maybe you can help me with the IP and ISP detection, and also with removing ads.

Me making this website was just me struggling for a few days, but in the end I made it working.

Stun3 commented 3 months ago

Also, any fix for this? Sometimes it works and sometimes it doesn't (it's the Settings, Login, Create account options up in speedtest) Screenshot 2024-06-01 082141

veso266 commented 3 months ago

Github doesnt know what to do with php files So just rename them to html (since there is no php code in them anyway) and edit the href html tags to point to them

Coding is fun, try it and you will enjoy it You can try this app to learn javascript: https://play.google.com/store/apps/details?id=com.codeliber.js

And one for html: https://play.google.com/store/apps/details?id=com.codeliber.html

Stun3 commented 3 months ago

I fixed it, settings/userlogin/userregister/results pages now work I also fixed most of the dead redirects, should now work (example: clicking the speedtest logo gave an 404 github error) There still are dead redirects, like going down on the page and clicking "Speedtest Mobile", but I don't have code for that.