bindPort property
Port number for the server.
Set this to the port the server will listen on.
If this value is not explicitly set, or is set to an value that is not valid for a TCP/IP port (i.e. outside of the range 0 to 65353), run change it to the default port 80 for HTTP and port 443 for HTTPS, depending on if run is invoked with a private key and certificate, or not.
Since port numbers below 1024 are reserved, normally the port will have to be set to a value of 1024 or larger before starting the server. Otherwise, a "permission denied" SocketException will be thrown when trying to start the server and it is not running with with root privileges.
Implementation
int bindPort = -1;