martin-ger / esp32_nat_router

A simple NAT Router for the ESP32
1.34k stars 282 forks source link

Stations can't make HTTP request to NAT router #117

Open hadif66 opened 1 year ago

hadif66 commented 1 year ago

I used this code but added an http endpoint like http://Nat-router-ip:80/post if I set the nat router IP as 192.168.1.126 other stations connected to it can make http calls to http://192.168.1.126:80/post but this way stations can't have access to internet If I change the nat router IP to 192.168.4.1 stations can have access to internet but can't make http calls to http://192.168.4.1:80/post the http call will give this error: W (1114517) httpd_uri: httpd_uri: URI '/post' not found W (1114519) httpd_txrx: httpd_resp_send_err: 404 Not Found - This URI does not exist can you tell me what changes needed to make it work with 192.168.4.1 as NAT router IP?