Made the port detection automatic

Instead of always relying on 27005 being the used port to communicate
with the server, the port will now automatically be detected (It's
possible to turn it off from settings). This improves support for VPN
connections and possible under the hood changes in the Dota 2 network
code.