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

Usage in Deno

import { Socket } from "node:net";

The numeric representation of the local port. For example, 80 or 21.

Type

number
Back to top