Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 8609

Networking and servers • Access Point with Captive Portal, no Internet. Nodogsplash, or other?

$
0
0
I gave my Raspberry Pi 4 project a way to connect to wifi without having to ssh in. Pretty much what you'd expect:
1. Install Apache and host a page that allows a user to select a wifi network
2. If no wifi at boot, create an access point and join it (thereby losing Internet). This is done in rc.local.
3. Have users navigate to the wifi selection page to set the wifi

It works very well, however the issue is that if you don't happen to know the IP address of the Raspberry Pi (10.42.0.1) then you have no way of knowing where to navigate to (my project doesn't have a screen) and are basically locked out.

Since someone joining the access point is only doing so to set the wifi, I would like all requests to redirect to that page.

I am working with nodogsplash but am getting a 404 error when I try to view any page but the wifi page at 10.42.0.1. I am guessing that the issue is that I am not using this program in the way that it was intended, namely that I am trying to use it with no internet. I also don't need any of the authtication stuff that seems to be ingrained in the program.

Here is my config file (in addition to the defaults):

Code:

GatewayInterface wlan0GatewayAddress 10.42.0.1MaxClients 250AuthIdleTimeout 480
Is Nodogsplah the correct tool for this? If so, any idea what I am going wrong? I just can't beleive that I am the first person who wants to allow uysers to set wifi via an access point hosted config page, so I wouldn't be surprised if there are tools out there I am just not finding.

Thank you,
kim

Statistics: Posted by followkim — Fri Sep 12, 2025 3:05 am



Viewing all articles
Browse latest Browse all 8609

Trending Articles