Much more efficient way to check ping using AWS ping API. Whipped up a quick program to test. Havent even added multithreading.
Didnt really do a test of the original but its sloooooow.Code:ping for server[USEast] was 393 ms ping for server[AsiaSouthEast] was 1286 ms ping for server[USSouth] was 81 ms ping for server[USSouthWest] was 81 ms ping for server[USEast2] was 82 ms ping for server[USNorthWest] was 85 ms ping for server[AsiaEast] was 791 ms ping for server[EUSouthWest] was 640 ms ping for server[USSouth2] was 82 ms ping for server[EUNorth2] was 536 ms ping for server[EUSouth] was 119 ms ping for server[USSouth3] was 81 ms ping for server[EUWest2] was 628 ms ping for server[USMidWest] was 210 ms ping for server[EUWest] was 120 ms ping for server[USEast3] was 80 ms ping for server[USWest] was 81 ms ping for server[USWest3] was 83 ms ping for server[USMidWest2] was 41 ms ping for server[EUEast] was 140 ms ping for server[Australia] was 1082 ms ping for server[EUNorth] was 127 ms ping for server[USWest2] was 82 ms Total time [8135]ms
Fun fact but my research showed that pretty much all the South East/Middle Eastern RotMG servers are actually just subnets of one single EC2 instance.
Last edited by ruusey; 02-04-2019 at 02:26 PM.
One day... machines will rule the world.
citydrifter (02-03-2019)
I use a simple TCPClient that connects to the server with the port 2050, the server just accepts it, by the time the connection is successful i stop the time. That's as close as one can get to a real ping i guess.
I wrote a Multi-Threaded version in C# with total ping times of about 350ms as avg (247ms was the best i have seen tho).
I've always been looking for something like this. Ty!
- - - Updated - - -
I've always been looking for something like this. Ty!
This is a great addition.
this is good lol