Node.js socket.remoteAddress() Method
The socket.remoteAddress() method is an inbuilt application programming interface of class Socket within dgram module which is used to get the remote address of the server containing the port, address, and family. Syntax: const socket.remoteAddress() Parameters: This method does not accept any param