changing connection to remote server