Limit Webserver-access in APSTA-Mode

CloudsEder
Posts: 9
Joined: Fri Feb 04, 2022 7:25 am

Limit Webserver-access in APSTA-Mode

Postby CloudsEder » Mon Jul 25, 2022 2:00 pm

Hello everyone,

I am using an esp32 with esp-idf that runs an webserver for configuration and sends data via mqtt. So the ESP is running in APSTA-mode. This way the webserver can be reached by devices connected to the AP as well as those, who are part of the same network as the esp in station mode. For my system I would like to lock the connectivity via the station-mode, so that the webserver is only available for those devices that are connected to the AP.

Is there possibility to do so?
Thanks in advance

user91829
Posts: 11
Joined: Thu Mar 03, 2022 11:20 am

Re: Limit Webserver-access in APSTA-Mode

Postby user91829 » Mon Jul 25, 2022 2:18 pm

I believe you can check the ip address of the client and respond likewise.

CloudsEder
Posts: 9
Joined: Fri Feb 04, 2022 7:25 am

Re: Limit Webserver-access in APSTA-Mode

Postby CloudsEder » Thu Jul 28, 2022 5:40 am

Thanks for the tip. Did that and it's working, while it's not the elegant solution I would've loved.

Who is online

Users browsing this forum: No registered users and 148 guests