My frontier router is located on 192.168.1.1, but the check in this code doesn't see it. I don't understand how this works so I don't understand why. Do you think this is fixable? Maybe try 192.168.1.2 also?
A somewhat related question: Does anyone know of an alternative to this to find the ip number of an http server? I have an IOT server that I need to find in anyone's home.
P.S. Could multiple attempts to connect be done in parallel? That would speed things up dramatically.