How to check if there is internet connection?
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
-
- VIP Livecode Opensource Backer
- Posts: 9848
- Joined: Sat Apr 08, 2006 7:05 am
- Location: Los Angeles
- Contact:
Re: How to check if there is internet connection?
Is the goal to check that the server is up, or to obtain the user's public IP address?
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
-
- VIP Livecode Opensource Backer
- Posts: 7257
- Joined: Sat Apr 08, 2006 8:31 pm
- Location: Minneapolis MN
- Contact:
Re: How to check if there is internet connection?
I don't know much about it either but if they're using a proxy then I think that's what you'll get back. But that's okay since that's the public facing machine.
Check the result to see if they're connected, or put the request into a try block to catch any errors. IOS has a function to check for connectivity but Android doesn't, so you may as well use the same method for both.
Check the result to see if they're connected, or put the request into a try block to catch any errors. IOS has a function to check for connectivity but Android doesn't, so you may as well use the same method for both.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
Re: How to check if there is internet connection?
@FourthWorld
Both. To check if the mobile device has an internet connection and, if that's the case, obtain its public address.
@ jacque
Both. To check if the mobile device has an internet connection and, if that's the case, obtain its public address.
@ jacque
I don't think it will work. If there is no answer, there gonna be no answer for a while.Then a timeout should be used. Don't you think?put the request into a try block to catch any errors
Really?IOS has a function to check for connectivity
Trevix
OSX 14.3.1 xCode 15 LC 10 DP7 iOS 15> Android 7>
OSX 14.3.1 xCode 15 LC 10 DP7 iOS 15> Android 7>
-
- VIP Livecode Opensource Backer
- Posts: 7257
- Joined: Sat Apr 08, 2006 8:31 pm
- Location: Minneapolis MN
- Contact:
Re: How to check if there is internet connection?
If there's no connection then you're right. If there are actual errors you may want to catch those too.
IOS has some "reachability" messages and functions. The reachabilityChanged message gives some info about the connection. It's not exactly a check for internet, but close.
IOS has some "reachability" messages and functions. The reachabilityChanged message gives some info about the connection. It's not exactly a check for internet, but close.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
-
- VIP Livecode Opensource Backer
- Posts: 9848
- Joined: Sat Apr 08, 2006 7:05 am
- Location: Los Angeles
- Contact:
Re: How to check if there is internet connection?
What will be done with the user's IP address?
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
Re: How to check if there is internet connection?
We have a hosted DB for analytics: the IP is used for geographical location of our users
Trevix
OSX 14.3.1 xCode 15 LC 10 DP7 iOS 15> Android 7>
OSX 14.3.1 xCode 15 LC 10 DP7 iOS 15> Android 7>
-
- VIP Livecode Opensource Backer
- Posts: 9848
- Joined: Sat Apr 08, 2006 7:05 am
- Location: Los Angeles
- Contact:
Re: How to check if there is internet connection?
You don't use the Apache logs for that? They're a treasure trove.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
Re: How to check if there is internet connection?
Didn't even know it existed (uh!). But what a level of complexity!
Anyway, we are a very small startup, our is not a web app, and we collect data of user activities all across the standalone, sending them at launch to a hosted DB.
We started with a Filemaker server running on my living room (!).
The plan is to move data collection to a MySQL DB so as to have a more popular tool to analyze the data.
Programming absorbs most of our time and we have to scale very gradually to the analytic part of our activities.
Any suggestion is welcomed, anyway
Anyway, we are a very small startup, our is not a web app, and we collect data of user activities all across the standalone, sending them at launch to a hosted DB.
We started with a Filemaker server running on my living room (!).
The plan is to move data collection to a MySQL DB so as to have a more popular tool to analyze the data.
Programming absorbs most of our time and we have to scale very gradually to the analytic part of our activities.
Any suggestion is welcomed, anyway
Trevix
OSX 14.3.1 xCode 15 LC 10 DP7 iOS 15> Android 7>
OSX 14.3.1 xCode 15 LC 10 DP7 iOS 15> Android 7>