Edit

GetHTTPServerPort(handle)

Result type:  number

Definition:  Returns the port that an HTTP server is listening on. Use this when you have requested an automatically-assigned ephemeral port to find out what port was bound.

See Also:

GetHTTPRequest: Get the HTTP request when processing a REST request on the server

GetHTTPRequestHeaders: Get the HTTP request headers when processing a REST request on the server

GetHTTPRequestPayload: Get the POST payload of an HTTP or REST request

PutHTTPRequestResponse: Put additional response information for an HTTP request

SSE_Send: Push SSE data to an HTTP client

StartHTTPServer: Start an HTTP server

StopHTTPServer: Stop an HTTP server