Chat freely about anything...

User avatar
By Nikhil J
#58443 Hi,

I have 2 ESPs that are required to be in AP+STA mode. Let's call them ESP-1 and ESP-2.
ESP-1's STA is connected to ESP-2's AP. The picture below makes this clear:

Picture1.png
ESP-ESP Topology

Here, ESP-1's STA IP is 192.168.4.2 while its AP's IP is 192.168.4.1(local to ESP-1)
ESP2's AP IP is 192.168.4.1

I am trying to send UDP packets to ESP-2's AP(192.168.4.1:2000) from ESP-1(192.168.4.2), but am unable to.
I believe this is due to ESP-1 resolving 192.168.4.1 to itself, whereas it should(ideally in this context) resolve 192.168.4.1 to ESP-2.

Any thoughts on how I could send data out to ESP-2? Any help/feedback appreciated.

Regards,
Nikhil
User avatar
By Nikhil J
#58489
martinayotte wrote:You can NOT have 2 subnets with the same IP range, otherwise your ESP1 will try to connect to itself instead of connecting to ESP2


Thanks for the inputs. Do you have any inputs as to how I could resolve this? Say, start the ESP1 DHCP addresses from 192.168.4.3, with ESP1 being at 192.168.4.2. I wasn't able to find the function to set the DHCP/AP start address.

Can you advice if this is the right way to go or there's a better way?