Skip to main content
The Deno 2 Release Candidate is here
Learn more
Go to Latest
method dgram.Socket.prototype.remoteAddress
import { dgram } from "https://deno.land/x/tellojs@v1.0.2/src/deps.ts";
const { Socket } = dgram;

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.