Questions tagged [internet-connection]

Anything related to the hardware, software tools and techniques needed to establish and manage an Internet connection.

Anything related to the hardware, software tools and techniques needed to establish and manage an Internet connection.

463 questions
21
votes
8 answers

How to programmatically check availibilty of internet connection in Android?

I want to check programmatically whether there is an internet connection in Android phone/emulator. So that once I am sure that an internet connection is present then I'll make a call to the internet. So its like "Hey emulator! If you have an…
21
votes
3 answers

Objective-C determine data network type of the iOS device

Im on an application that receive data from server, the problem is when user connect to cellular data (Not 3G or WIFI), it take ages to receive data. i had implemented this code from this Answer but im not sure if it is effective or not, sometimes…
Mutawe
  • 6,464
  • 3
  • 47
  • 90
18
votes
10 answers

Android Internet connectivity check better method

According to the Android developer site, Determining and Monitoring the Connectivity Status, we can check there is an active Internet connection. But this is not working if even only Wi-Fi is connected and not Internet available (it notifies there…
18
votes
2 answers

How to check the internet connectivity within the network in Android (using internet of some other device through HOTSPOT)

I have a requirement where I want to check whether there is any internet connectivity when I am connected with the network. For example, I have device A and device B. Device A is connected with hotspot with that of device B. In device A, I get it as…
android developer
  • 1,253
  • 2
  • 13
  • 43
18
votes
7 answers

Check if Internet Connection Exists with Ruby?

Just asked how to check if an internet connection exists using javascript and got some great answers. What's the easiest way to do this in Ruby? In trying to make generated html markup code as clean as possible, I'd like to conditionally render…
Lance
  • 75,200
  • 93
  • 289
  • 503
17
votes
8 answers

Check for internet connectivity from Unity

I have a Unity project which I build for Android and iOS platforms. I want to check for internet connectivity on Desktop, Android, and iOS devices. I've read about three different solutions: Ping something (for example Google) - I totally dislike…
Anna Kuleva
  • 179
  • 1
  • 1
  • 3
15
votes
5 answers

ANDROID: if WiFi is enabled AND active, launch an intent

This is what I would like to do : => IF WiFi is enabled AND active, launch an intent (in fact it's a WebView that gets its content=>the instructions of my app on the web) => IF NOT, then I would launch another intent so that I don't show a WebView…
Hubert
  • 16,012
  • 18
  • 45
  • 51
14
votes
15 answers

How do I retrieve the visitor's ISP through PHP?

How do I find out the ISP provider of a person viewing a PHP page? Is it possible to use PHP to track or reveal it? If I use something like the following: gethostbyaddr($_SERVER['REMOTE_ADDR']); it returns my IP address, not my host name or ISP.
isp_org
14
votes
2 answers

Internet connection in android emulator always displays connected state

I tried in many ways to check Internet connection in my android emulator ConnectivityManager conMgr = (ConnectivityManager)getSystemService(Context.CONNECTIVITY_SERVICE); NetworkInfo info= conMgr.getActiveNetworkInfo(); if(info…
ganesh
  • 1,247
  • 6
  • 24
  • 46
12
votes
3 answers

Best Approach For Checking Internet Connection in iOS

I have been searching through internet to find the best way to check for internet connection in iOS that works for both in IPv4 and IPv6 network environment. I found there are many possible answers but very confused on which one to apply. What I…
skJosh
  • 631
  • 1
  • 8
  • 16
12
votes
4 answers

Detect an internet connection activation with Delphi

I've been using a 3G wireless card for a while and every time I connect, my anti-virus fires up the updates. I'm wondering what is the Win32 API set of functions that I can use to, either, get notified or query about the event of an Internet…
Gustavo Carreno
  • 9,499
  • 13
  • 45
  • 76
11
votes
3 answers

Bash script to (more or less) reliably check if the Internet is up

I need a Bash (or a plain shell) script to put in a cronjob that every minute checks if the Internet is up. This is how I did it: #! /bin/sh host1=google.com host2=wikipedia.org curr_date=`date +"%Y%m%d%H%M"` echo -n "${curr_date};" ((ping -w5 -c3…
João Portela
  • 6,338
  • 7
  • 38
  • 51
10
votes
5 answers

JQuery Mobile Detected if there's internet Connection

What is the best way to detect if there's internet connection or not on my mobile via my web app?
Satch3000
  • 47,356
  • 86
  • 216
  • 346
9
votes
3 answers

how to check InternetConnection in wp7?

i want to check internet connection in my application.but, its not displaying properly. i am using this code for internet connection: NetworkInterface.GetIsNetworkAvailable(); in this code always return true value.if net available or not available…
Jeeva
  • 1,166
  • 4
  • 18
  • 39
9
votes
3 answers

Check whether Internet is on or off in Xamarin Android

I am working on Xamarin Android Application.Before proceed to my next fragment I want to check Internet Connection and inform user about it ? How can i implement that ?And how to refresh whole fragment after user switch-on the internet? Any advice…
Dhruv Gohil
  • 842
  • 11
  • 34
1
2
3
30 31