FetchServerIp: Revision history

Jump to navigation Jump to search

Diff selection: Mark the radio buttons of the revisions to compare and hit enter or the button at the bottom.
Legend: (cur) = difference with latest revision, (prev) = difference with preceding revision, m = minor edit.

8 January 2025

  • curprev 19:5519:55, 8 January 2025Botder talk contribs 836 bytes +836 Created page with "{{Useful_Function}} <lowercasetitle/> __NOTOC__ This function returns the server ip as reported by a third-party service. ==Syntax== <syntaxhighlight lang="lua"> string fetchServerIp ( ) </syntaxhighlight> ==Code== <section name="Server" class="server" show="true"> <syntaxhighlight lang="lua"> SERVER_IP = "127.0.0.1" function fetchServerIp() return SERVER_IP end fetchRemote("http://checkip.dyndns.com/", function (response) if response ~= "ERROR" then..."