auto server finding

I added a way to automatically find the needed captive portal URL