LC 8.1.1 Indy and Community 8.1.2 rc 1 standalone issue

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
rippertoews
Posts: 9
Joined: Thu Sep 25, 2014 10:11 pm

LC 8.1.1 Indy and Community 8.1.2 rc 1 standalone issue

Post by rippertoews » 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

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

bangkok
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 937
Joined: Fri Aug 15, 2008 7:15 am

Re: LC 8.1.1 Indy and Community 8.1.2 rc 1 standalone issue

Post by bangkok » Thu Nov 24, 2016 5:29 pm

sounds like you have a problem with "inclusions".

you should check your "standalone application settings".

question : for which OS you build your app' ?

other question : why you don't use the new JSON library :

Code: Select all

put JsonImport(pJson) into myArray
?

rippertoews
Posts: 9
Joined: Thu Sep 25, 2014 10:11 pm

Re: LC 8.1.1 Indy and Community 8.1.2 rc 1 standalone issue

Post by rippertoews » Thu Nov 24, 2016 7:40 pm

I'll check my settings; I build it for windows - thanks for telling me about the new library! I tried this in Indy 7.1.2 (with some Json changes) and it works flawlessly...

Post Reply