- Code: Select all Expand view RUN
- curl -4 ifconfig.co/json
or try
https://ifconfig.co/
function PublicIP()
return BeforAtNum( "</span>", AfterAtNum( [-ip">], WebPageContents( "https://ifconfig.co/" ), 1 ), 1 )
GetHostByName( GetHostName() )
function LocalIP()
local cIP
WSASTARTUP()
cIP = GetHostByName( GetHostName() )
WSACLEANUP()
return cIP
Antonio Linares wrote:https://www.fivetechsoft.com/getip.php
function PublicIP()
return WebPageContents( "https://www.fivetechsoft.com/getip.php" )
Return to FiveWin for Harbour/xHarbour
Users browsing this forum: No registered users and 70 guests