Use proper remote type for socket.