Code: Select all | Expand
curl -4 ifconfig.co/json
https://ifconfig.co/
Code: Select all | Expand
function PublicIP()
return BeforAtNum( "</span>", AfterAtNum( [-ip">], WebPageContents( "https://ifconfig.co/" ), 1 ), 1 )
Code: Select all | Expand
GetHostByName( GetHostName() )
Code: Select all | Expand
function LocalIP()
local cIP
WSASTARTUP()
cIP = GetHostByName( GetHostName() )
WSACLEANUP()
return cIP
SimpleAntonio Linares wrote:https://www.fivetechsoft.com/getip.php
Code: Select all | Expand
function PublicIP()
return WebPageContents( "https://www.fivetechsoft.com/getip.php" )