ServersYour serverFor creatorsForumFAQDocumentationSecurity
Download the launcher
  1. Documentation
  2. Server functions
  3. getServerIpFromMasterServer

Function

getServerIpFromMasterServer

ServerServerIdentical to MTA:SA

Returns the server address as seen from outside, as reported by the server list.

Syntax

string getServerIpFromMasterServer()

Returns

The address, or false until the list reports it.

Example

local ip = getServerIpFromMasterServer()
outputServerLog("Adres publiczny: " .. tostring(ip))

See also