Get External ip from ipify.org with curl and parse to progress 4gl.
DEF VAR VRUN_FILE AS CHAR NO-UNDO.
DEF VAR VRESULT AS LONGCHAR NO-UNDO.
ASSIGN VRUN_FILE = "C:\curl\curl -X GET -v https://api.ipify.org?format=json > c:\result.txt".
OS-COMMAND SILENT VALUE(VRUN_FILE).
COPY-LOB FROM FILE...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.