fix remote connection on cmd line client