Make sure we connect to the correct port if we're behind a proxy