Skip to main content
Go to Latest
method Socket.prototype.remoteAddress
import { Socket } from "https://deno.land/std@0.166.0/node/dgram.ts";

Returns an object containing the address, family, and port of the remote endpoint. This method throws an ERR_SOCKET_DGRAM_NOT_CONNECTED exception if the socket is not connected.