I am writing a program that allows users to supply a list of hostsname or IPs which I will then find out which host connectivity is faster and connect to it.
And right as I am typing the question in the title, I thought that pinging might be a possibiity, but what other methods can I use since not all hosts respond to pings?
There are a bunch of website that calculate distance between 2 IPs, how does that work?