ServersYour serverFor creatorsForumFAQDocumentationSecurity
Download the launcher
  1. Documentation
  2. Server functions
  3. 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())

See also