It has been a while but now I have the following issue i do seem to be able to solve. Help would be much appreciated.
I have tried everything to get the code below working in a standalone on Windows 10 Pro.
I need the outside IP address and it works fine in development but the standalone gives no information.
In lesson 'How do I get the content of a URL on a web server into LiveCode?' I read that for https you need to include revSecurity library .
However in the 'Standalone Application Settings > inclusions' I do not see that option. I have added all available options but it still does not work in the standalone.
Hope someone else know the cause of my issue and a way to solve it ?
Code: Select all
put empty into fld "CurrentIPAddress"
put empty into fld "CurrentIPv6Address"
put "https://api.ipify.org/" into tURLIPv4
put url tURLIPv4 into tCurrentIPAddress
put tCurrentIPAddress into fld "CurrentIPAddress" // For IP v4
wait 1
// For IP v6 https://api64.ipify.org
put "https://api64.ipify.org/" into tURLIPv6
put url tURLIPv6 into tCurrentIPv6Address
put tCurrentIPv6Address into fld "CurrentIPv6Address"
wait 1
Paul Agerbeek (alias Mr CoolLIon)