- Documentation
- Server functions
- getServerHttpPort
Function
getServerHttpPort
Returns the HTTP server port. The Trilogy Hub server has no separate HTTP server (resource files reach players through the game connection), so it usually returns 0.
Syntax
int getServerHttpPort()Returns
The port, or 0.
Example
outputServerLog("HTTP: " .. getServerHttpPort())