Connect to master server