int port

Returns the port used by this socket.

Source

int get port => _socket.port;