PlocalPort
Bun

property

tls.TLSSocket.localPort

readonly localPort?: number

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