GetServerIpFromMasterServer
Jump to navigation
Jump to search
Syntax
string getServerIpFromMasterServer ( )
Returns
A string containing the remote address of the server as reported, once it's available.
Example
This example creates a console command that outputs the server's IP to the chatbox.
function outputServerIp() outputChatBox(getServerIpFromMasterServer()) end addCommandHandler("serverIp", outputServerIp)
See Also
- getMaxPlayers
- getServerConfigSetting
- getServerHttpPort
- getServerName
- getServerPassword
- getServerPort
- isGlitchEnabled
- setGlitchEnabled
- setMaxPlayers
- setServerConfigSetting
- setServerPassword
- shutdown