GetServerIpFromMasterServer: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
mNo edit summary |
(No difference)
|
Latest revision as of 19:47, 8 January 2025
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