As a proof, if I remove the SIM card from my portable battery powered router, I can still connect to it, from a mobile device, using WiFi. NetworksInterfaces return the the local IP but, obviously, it is not connected to the web.this does not mean for sure that you are connected to internet
Search found 878 matches
- Sun Sep 10, 2023 10:34 am
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: Detect internet connectivity
- Replies: 26
- Views: 16180
Re: Detect internet connectivity
- Sun Sep 10, 2023 10:27 am
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: Detect internet connectivity
- Replies: 26
- Views: 16180
Re: Detect internet connectivity
My knowledge on networks is limited so you will excuse me if I write incorrect explanations. What I don't know is if this will work on Android - may Trevix has already tried this and found networkInterfaces doesn't? (it is supposed to) networkInterfaces works fine on Android, but this funcion is use...
- Sun Sep 10, 2023 9:53 am
- Forum: Android Deployment
- Topic: Billing library update
- Replies: 9
- Views: 6445
Re: Billing library update
In the release notes of LC10 DP6 there is no mention of the billiing library update, as on LC9.6.10. I am already using the SDK version 31. I think there should be some library update to be done in Android studio, but I could not find the correct one and I don't dare to update other stuff ("Google P...
- Sat Sep 09, 2023 11:40 pm
- Forum: Android Deployment
- Topic: Billing library update
- Replies: 9
- Views: 6445
Re: Billing library update
I guess there is some update to be done on the Android studio app, but I don't know which one.
- Sat Sep 09, 2023 11:15 pm
- Forum: Android Deployment
- Topic: Billing library update
- Replies: 9
- Views: 6445
Re: Billing library update
Hello. I read that on LC 9.6.9 the problem with google billing library was fixed. I assumed that this was also the case for LC 10 dp6 but, apparently, this is not the case. I tried to install my standalone on a Android 13 hardware device and today I got the following failure. Schermata 2023-09-09 al...
- Sat Sep 09, 2023 2:51 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: Detect internet connectivity
- Replies: 26
- Views: 16180
Re: Detect internet connectivity
I am on OSX Monterey, LC 10 DP6 This is my test connection stack. Just open it with LC. Your code is in Button 6. recipe: connect you mac to wifi click on btn 6 expected result: the external IP observed result: the external IP Now turn off wifi. click on btn 6 (and be patient) expected result: no co...
- Sat Sep 09, 2023 1:53 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: Detect internet connectivity
- Replies: 26
- Views: 16180
Re: Detect internet connectivity
Let's see... connect your Mac to internet wifi (disconnect ethernet if connected) in the script: line 3 "put url" line 4 "if Json is empty" and following will run fine, reporting immediately the IP turn off wifi on Mac in the script: line 3 "put url" --at this point, not being connected, the script ...
- Sat Sep 09, 2023 11:04 am
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: Detect internet connectivity
- Replies: 26
- Views: 16180
Re: Detect internet connectivity SOLVED (?)
I found the solution for my script, sending a "no_reuse" = true" with the tsNetGetSync. Now this script works very fast on iOS, Android and OSX, reporting "no internet" or the external IP. If you find something that, according to you, does not fit or can be a problem in the log run, PLEASE do your o...
- Sat Sep 09, 2023 9:50 am
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: Detect internet connectivity
- Replies: 26
- Views: 16180
Re: Detect internet connectivity
Thanks. You got it but there is more. My requirements: being a published App, I must use a URL that I am sure will work forever (sigh). As I wrote before, I was using "http://ifconfig.me/ip" but now it returns the IPV6 (don't know why). But let us assume that your suggested URL will work consistentl...
- Fri Sep 08, 2023 3:44 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: Detect internet connectivity
- Replies: 26
- Views: 16180
Re: Detect internet connectivity
1) You stand correct, Mark. I removed both the tsNetInit and the tsNetClose and now it works super on Android. BUT on OSX and iOS, after changing the SSID, on the first run it returns no connection (I guess is cached). Only on a second run of the script it returns the new IP. So (sigh) I modified t...
- Fri Sep 08, 2023 11:10 am
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: Detect internet connectivity
- Replies: 26
- Views: 16180
Re: Detect internet connectivity
If you refer to this code: on mouseUp put "" into fld "TheAnswer" tsNetInit tsNetSetTimeouts 5,5000, 5000, 5000, 0, 0 put "https://api.ipify.org?format=json" into tGetString put tsNetGetSync(tGetString, tHeaders, tRecvHeaders, tResult, tBytes) into tTheAnswer tsNetClose put tTheAnswer into fld "TheA...
- Fri Sep 08, 2023 12:25 am
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: Detect internet connectivity
- Replies: 26
- Views: 16180
Re: Detect internet connectivity
Another post resumed... My standalone (iOS and Android) needs to know if the device is connected to internet and to obtain the public IP (not the local IP) I had a script that was working fine, using "http://ifconfig.me/ip". Then, on the last update, I realised that the website started to respond wi...
- Wed Sep 06, 2023 4:06 pm
- Forum: Android Deployment
- Topic: My local IP address
- Replies: 28
- Views: 24276
Re: My local IP address
I resume this old conversation, because I have some doubts. Running this on the Mac,connected both to wifi and ethernet: on mouseUp pButtonNumber answer "networkInterface:" & cr & the networkinterfaces & cr & "JacqueFunct:" & cr & localIP() end mouseUp --Jacque local ip function function localIP -- ...
- Tue Sep 05, 2023 6:41 pm
- Forum: Getting Started with LiveCode - Experienced Developers
- Topic: Algorithm for deleting files
- Replies: 8
- Views: 5948
Re: Algorithm for deleting files
Correct, Jacque. Thanks. Any way I was hoping on some slicker trick to do this thing. All these repeat loop may not be efficient enough when deleting from a list of hundreds filenames. One more thing that I don't know if the "delete file filepath" command is time consuming or not. My final code is t...
- Tue Sep 05, 2023 11:20 am
- Forum: Getting Started with LiveCode - Experienced Developers
- Topic: Algorithm for deleting files
- Replies: 8
- Views: 5948
Re: Algorithm for deleting files
The best I could think of, is the following: on mouseUp --create a dummy list repeat with U = 1 to 11 put U & "_testuser2@" & cr after tList end repeat put "12_testuser1@" & cr after tList put "cane_testuser3@" after tList --get list of owners set the itemdelimiter to "_" repeat for each line tLine ...