LC 8.1.1 Indy and Community 8.1.2 rc 1 standalone issue
Posted: Thu Nov 24, 2016 3:26 pm
I have the code below running every 10 minutes and it works fine in the IDE - however when I create a standalone application in either community or indy version - it's like it doesn't connect to the network and it doesn't get the public ip anymore.. I tried allowing everything through windows firewall and uninstalled my antivirus but that didn't fix the issue - I'm running Windows 10 pro 64bit Version 10.0.14393 Build 14393.
Any idea's?
Thanks,
Jason
Any idea's?
Thanks,
Jason
Code: Select all
on GetPublicIP
//clear date and time on form
put empty into field "lastupdate"
//url https://api.ipify.org/?format=json
send "GetPublicIP" to me in 600 seconds
get URL "https://api.ipify.org/?format=json"
put it into tPublicJson
put JSONToArray(tPublicJson) into tPublicIP
put tPublicIP["ip"] into tIP
set the cp_ipaddr of me to tIP
call PostToSite
end GetPublicIP
on PostToSite
put the cp_ipaddr of me into tIP
put "ipaddress=" & URLEncode(tIP) into tPostdata
post tPostdata to URL "http://myserver.com/myfile.lc"
//update form
put the short date && the long time into field "lastupdate"
end PostToSite