Connect to the right host when relaunchig the app