Skip to content
Advertisement

Getting the exact ping in ms from the server [closed]

i’m having trouble trying to get the exact ping value in ms from the server and storing it. I’m trying to make a website that has colored boxes with the servers names, and it changes the colors depending on the ping. So i can know fast when the server is responding fast, slowly or when it’s down. I have been trying it on C#, but if there’s a more consistent way it doesn’t matter the language.

Advertisement

Answer

A simple bash do the job:

JavaScript

with output

enter image description here

User contributions licensed under: CC BY-SA
2 People found this is helpful
Advertisement