Hi.
The most safe way, I believe is to get that information by running an internet "query".
You can try this:
httpClient lo_client
integer li_ret, li_StatusCode
long ll_ret
string ls_url
string ls_data
string ls_ret
ls_url = 'http://ipinfo.io/ip'
lo_client = Create httpClient
ll_ret = lo_client.sendrequest('get',ls_url)
li_StatusCode = lo_client.GetResponseStatusCode()
ls_ret = lo_client.GetResponseStatusText( )
li_ret = lo_client.getresponsebody( ls_data)
destroy lo_client
messagebox("", ls_ret)
messagebox("", ls_data)
return
ls_data should contain you external ip.
Andreas.
ll_rval = lnv_http.sendrequest( 'GET', 'https://api.ipify.org')
lnv_http.getresponsebody( lblb_rval )