Fix remote client socket connection