Skip to main content
Socket.prototype.remoteAddress - net - Node documentation
property Socket.prototype.remoteAddress

Usage in Deno

import { Socket } from "node:net";

The string representation of the remote IP address. For example,'74.125.127.100' or '2001:4860:a005::68'. Value may be undefined if the socket is destroyed (for example, if the client disconnected).

Type

string | undefined