getServerHttpPort
Client-side
Server-side
Shared
Manual Review Required
Please finish this page using the corresponding Old Wiki article. Go to Contribution guidelines for more information.
This function retrieves the server's HTTP port.
Syntax
int getServerHttpPort ( )Returns
- int: value
An integer corresponding to the server's HTTP port.
Code Examples
shared
This example outputs server's HTTP port to the chat box when player uses commandgetHttpPort
addCommandHandler("getHttpPort",function(player, command)
outputChatBox("HTTP port of this server is: " .. getServerHttpPort(), player, 0, 255, 0)
end)