int port

Returns the port that the server is listening on. This can be used to get the actual port used when a value of 0 for port is specified in the bind or bindSecure call.

Source

int get port;