- Documentation
- Server functions
- getServerIp
Function
getServerIp
Returns the address the server listens on. Usually "0.0.0.0" (all interfaces); the real address seen from the internet is given by getServerIpFromMasterServer.
Syntax
string getServerIp()Differences from MTA:SA
- These MTA:SA arguments are not here:
bool includePort = false
In MTA:SA
getServerIp(bool includePort = false)Returns
The IP address.
Example
outputServerLog("Nasluchuje na " .. getServerIp())