Questions tagged [captivenetwork]

A Captive Network is generally a Wifi one. Such a network redirect any traffic to a local machine. It disallows surfing the Internet, until you have authenticated or accepted ToS.

A captive portal is a special web page that is shown before using the Internet normally. The portal is often used to present a login page.[1] This is done by intercepting most packets, regardless of address or port, until the user opens a browser and tries to access the web. At that time the browser is redirected to a web page which may require authentication and/or payment, or simply display an acceptable use policy and require the user to agree. Captive portals are used at many Wi-Fi hotspots, and can be used to control wired access (e.g. apartment houses, hotel rooms, business centers, "open" Ethernet jacks) as well.

127 questions
26
votes
9 answers

CNCopyCurrentNetworkInfo with iOS 13

Apple changed some things regarding WiFi with iOS 13. If you want to use CNCopyCurrentNetworkInfo your app needs to have one of the following Apps with permission to access location Your app is the currently enabled VPN app Your app configured the…
MikeB
  • 1,619
  • 2
  • 15
  • 27
25
votes
3 answers

Captive Wifi Popup: Click a link to open Safari

We are having an issue on our network with iOS devices (ipads, iphones etc): After connecting to the SSID, the iphone / ipad immediately opens the Captive Network Assistant (CNA) - it is like a scaled-down browser without navigation buttons etc -…
user3570787
  • 251
  • 1
  • 3
  • 4
24
votes
4 answers

Captive portal on android device

I am using my android device as a mobile web server. I want to direct every user that connects through my portable Android hotspot to a specific wellcome page. Does anybody know how to implement this technique in my device (I believe this is called…
Panayotis
  • 1,743
  • 1
  • 17
  • 30
17
votes
1 answer

Launch default browser from Android's captive portal browser (CaptivePortalLogin)

On Android devices, our captive portal launches in Android's Captive Portal Browser. After authentication, we redirect the user to a status page, where they can see their session information, remaining time and data, etc. Most users choose to keep…
J. Johnson
  • 171
  • 1
  • 5
14
votes
3 answers

Prevent Captive Portal auto-close after authentication (Android)

So the simple idea is that we have a RADIUS server setup to allow users to authenticate with our Ruckus controller via user credentials. On authentication the user should be redirected to a page that allows them to manage MAC authenticated…
zgc7009
  • 3,371
  • 5
  • 22
  • 34
13
votes
3 answers

iPhone : how to auto connect to a known wifi SSID?

I know it is possible to list the available Wifi networks on iPhone using the CaptiveNetwork API from official Apple SDK. I was wondering if there is a way to auto connect to a specific SSID programmatically as long as I can find it in the list…
Jerome
  • 609
  • 1
  • 5
  • 18
10
votes
1 answer

How can I debug the browser in Captive Portal?

The Captive Portal has a browser that sometimes opens up when you attempt to connect to a wireless network. Does anyone know how I can debug it? What I've already tried: I have tried running a simulator, but the simulator wont open the portal. I…
Soroush Hakami
  • 5,226
  • 15
  • 66
  • 99
8
votes
3 answers

CaptiveNetwork : CNSetSupportedSSIDs usage

I tried to use CaptiveNetwork in order to replace the web sheet that for user authentication with the network. The method is CNSetSupportedSSIDs. I have tried to add this method in AppDelegate of my app, but when I want to use a hotspot with the…
Michaël
  • 6,676
  • 3
  • 36
  • 55
8
votes
2 answers

How to know the connected WiFi is Walled Gardened (Captive Portal)?

I know there is way to find out whether a WiFi network is a captive portal by checking the response of something like "http://clients3.google.com/generate_204". But my question is somewhat different. We all know that on Android when we connect to a…
Anas Azeem
  • 2,820
  • 3
  • 24
  • 37
8
votes
5 answers

iOS: Open a Welcome Page in Safari, not CNA (post-authentication)

I'm running a captive portal, target audience are mobile devices only. I would like to open a "welcome page" to the user after he authenticated in the CNA. This page should open in (mobile) Safari, not in the CNA, because it contains interactive…
Tom
  • 2,688
  • 3
  • 29
  • 53
7
votes
1 answer

Samsung phones ignore Captive Portal intent (android.net.conn.CAPTIVE_PORTAL)

I want to setup an Activity that can be chosen to navigate a captive portal. When I select a WiFi network that is captive I want to be able to choose my app as the handler instead of starting the CaptivePortalLogin app that's preinstalled on every…
6
votes
1 answer

MonoTouch WIFI SSID

is there a possibility to get on an IPhone the connected WIFI SSID with Monotouch? I have found a possibility to check the Wi-Fi States but there is no way to check the SSID.…
user1120866
  • 105
  • 7
6
votes
2 answers

iOS: Getting current WiFi SSID is always nil on Testflight

Below is the code I use to get my current WiFi SSID and display it in my app. I have location permissions set to always, as well as the required Privacy info.plist values. I also have the Access WiFi Information capability added to my project. When…
Dom Bryan
  • 1,238
  • 2
  • 19
  • 39
6
votes
1 answer

permission popup on captive portal

I'm creating this landing page that's supposed to be triggered by a captive portal. on my landing page, there's a button to trigger open a
Ray Jonathan
  • 1,285
  • 1
  • 12
  • 21
6
votes
1 answer

Using ACTION_CAPTIVE_PORTAL_SIGN_IN

The Android M supports a new ACTION_CAPTIVE_PORTAL_SIGN_IN. Is there any sample available on how to capture this action. I tried with the normal way of registering for an action in both through the activity and through the broadcast receiver.…
SGeorge
  • 75
  • 1
  • 5
1
2 3
8 9