martin-ger / esp32_nat_router

A simple NAT Router for the ESP32
1.32k stars 279 forks source link

no internet connectivity for a second router #46

Open afennani opened 3 years ago

afennani commented 3 years ago

My ultimate goal is to have 2 esp32 acting as range extender for my home wifi.

HOME ROUTER <===(802.11 bgn)===> Gateway (esp32)<==(LR mode)==>SPOT-1(esp32)<=== esp32 iot devices let's ignore the LR mode for now.

martin-ger commented 3 years ago

Where did you change the IP address? Here as well? https://github.com/martin-ger/esp32_nat_router/blob/master/main/esp32_nat_router.c#L505 Think, this should do the job...

martin-ger commented 3 years ago

Added a new command on the serial console: "set_ap_ip [addr]". With this you can modify the IP of the ESP's AP.

afennani commented 3 years ago

thanks for the change. it will help for sure. but my problem is not the ip itself. i had 2 builds before (one with 192.168.4.1 and the other with 192.168.5.1). all the ip addresses are fine it s just when i connect the Gateway AP i have internet. but when i connect to SPOT-1 (which is connected to Gateway), i don't have internet access and i can't contact the gateway