davesteele / comitup

Bootstrap Wifi support over Wifi
https://davesteele.github.io/comitup/
GNU General Public License v2.0
320 stars 54 forks source link

Change address of captive portal #137

Closed Golgomaph closed 3 years ago

Golgomaph commented 3 years ago

Hey davesteele,

i dont know how captive portal works exactly.. can i change the address it is automatically connecting to (f.e. on android)? I am running a node-red and i wish to manage the wifi-credential thing from there instead of your html-page.

Instead of 10.41.0.1

it would be enough to make it connecting to 10.41.0.1:1880/ui/

Is it possible?

davesteele commented 3 years ago

You want to change the port?

Yes. grep the source for 10.41.0, and adjust (also see #61).

But, there is a reason captive portals are on port 80 - One of the several captive portal strategies in use depends on hijacking an http request with the wifi config page, which means owning the root page on port 80 (another is driven by the _dhcpoptions in dns-hotspot.conf.

Make sure you understand the _webservice parameter in the config file.