$sock().port returns the remote port, not the local port.

The local port remains the same as the one on which you were listening and accepted the connection, different connections only have different remote ips and/or ports (which are all different, because people connecting to you can use each of their ports for only one outgoing connection at a time)


$input(Me like stars, You too?)