World Ping

Go down

World Ping Empty World Ping

Post by elemntsk8ter on Tue Nov 26, 2019 9:29 pm

Code:
#World 1 is World 301
$world = 1
$domain = "oldschool" + $world + ".runescape.com"

while($world -ne 221) {
#Change -Count 4 to -Count 1 for immediate results
$ping = (Test-Connection $domain -Count 4 | measure-Object -Property ResponseTime -Average).average
Write-Host $world  " : "  $ping
$world++
}

Someone mentioned using the command line to get the ping for a world. Wrote this little while loop to return the average ping after 4 packets for every world. Feel free to modify it (please do) and make it better. But here's an initial stab at it.

Simply save it as a .ps1 file for powershell and let it rip. Smile
elemntsk8ter
elemntsk8ter

World Ping YP5zkAJ

Posts : 267
Reputation : 12
Age : 28
Join date : 2017-12-05


Back to top Go down

World Ping Empty Re: World Ping

Post by Bodjery on Thu Nov 28, 2019 4:52 pm

I wish I could understand how to do this! I have a mac.... it's very interesting, since many worlds have different response to our own services, specially being from different parts of the world.
Any enlightment, will be fully appreciated!
Thank you!
Bod.
Bodjery
Bodjery

Posts : 75
Reputation : 17
Age : 58
Join date : 2018-08-24


Back to top Go down

World Ping Empty Re: World Ping

Post by elemntsk8ter on Fri Nov 29, 2019 6:09 pm

@Bodjery - Here are some instructions on how to install and run Powershell on a Mac. Then just copy and paste the bit into the terminal and boom, you're off and running.

https://www.howtogeek.com/267858/how-to-install-microsoft-powershell-on-linux-or-os-x/

Let me know if you need any help, and I can walk you through it on Discord.
elemntsk8ter
elemntsk8ter

World Ping YP5zkAJ

Posts : 267
Reputation : 12
Age : 28
Join date : 2017-12-05


Back to top Go down

Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum