Connects to correct server