Socket.prototype.localAddress - Node documentation
property Socket.prototype.localAddress

Usage in Deno

import { Socket } from "node:net";

The string representation of the local IP address the remote client is connecting on. For example, in a server listening on '0.0.0.0', if a client connects on '192.168.1.1', the value of socket.localAddress would be'192.168.1.1'.

Type

string