PremotePort
Bun

property

tls.TLSSocket.remotePort

readonly remotePort?: number

The numeric representation of the remote port. For example, 80 or 21. Value may be undefined if the socket is destroyed (for example, if the client disconnected).