Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Servers list #4

Open
Stun3 opened this issue Mar 17, 2024 · 17 comments
Open

Servers list #4

Stun3 opened this issue Mar 17, 2024 · 17 comments

Comments

@Stun3
Copy link

Stun3 commented Mar 17, 2024

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
Copy link
Owner

veso266 commented Mar 18, 2024

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
Copy link
Author

Stun3 commented Mar 18, 2024

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
Copy link
Owner

veso266 commented Mar 19, 2024

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
Copy link
Author

Stun3 commented Mar 19, 2024

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
Copy link
Author

Stun3 commented Mar 24, 2024

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
Copy link
Author

Stun3 commented Mar 24, 2024

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
Copy link

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
Copy link
Author

Stun3 commented May 31, 2024

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: [email protected]
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
Copy link
Author

Stun3 commented May 31, 2024

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
Copy link
Owner

veso266 commented May 31, 2024

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
Copy link
Author

Stun3 commented Jun 1, 2024

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
Copy link
Author

Stun3 commented Jun 1, 2024

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
Copy link
Owner

veso266 commented Jun 1, 2024

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
Copy link
Author

Stun3 commented Jun 1, 2024

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.

@Stun3
Copy link
Author

Stun3 commented Oct 13, 2024

lol i totally forgot about this, but it still seems to be working.
I'm glad ookla doesnt have any problems with this, maybe they don't even know.....

@veso266
Copy link
Owner

veso266 commented Oct 13, 2024

I sure hope they dont know or even care 😄

@Stun3
Copy link
Author

Stun3 commented Oct 23, 2024

even if they take it down, i still have all the code stored, i would only need to change the license key of speedtest and reupload it :D

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants