Now I'm not talking about the gateway command when initializing the softAP. That gateway is forward from the cell phone through the access point to the station network and on to the router. This would be a gateway returning from the router. Since the data sent will be on the AP network address, and the only thing the router knows is connected to it is the station mode network (assigned by the router). In other words the cell phone on the AP network has an AP assigned address of 192.168.4.2 and the AP on the ESP8266 is address 192.168.4.1 while the Station portion of the ESP8266 has the router assigned address of 192.168.200.25 with the router 192.168.200.1. So the data passed as 192.168.4.2 from the cell phone knows it's only wifi connection is to 192.168,4,1 so it passes the data there. The AP at 192.168,4.1 knows the connection to the router is through 192.168,200.25 by its internal gateway command and of course the station mode knows it connected to the router at 192.168,200.1 so the data is passed smoothly to the internet. But when data comes back from the internet for address 192.168,4.2 there is nothing to tell the router where to send it. Is there a command that can be sent when initializing the station that can tell the router that it (the station 192.168,200.25) is the gateway to the 192.168,4.1 network and thereby the 192.168.4.2 cell phone and any other phones that may subsequently connect?
Thanks in advance. Hope I was clear enough.
Who is online
Users browsing this forum: No registered users and 1 guest
Newbies Start Here
Are you new to ESP8266?
Unsure what to do?
Dunno where to start?
Start right here!
We also have a RTOS version and a MESH version too!
Complete listing of the official ESP8266 related documentation release by ESPRESSIF!
Must read here!