Implemented support for custom port detection

The program from where the ports are automatically detected can now be
specified in settings. This should fix issues where the actual connected
port was used by the VPN and not Dota 2.
Made detected ports update when option toggled

Every time the automatic port detection option is toggled, the timer for
the port update is reset, and thus an update is performed.