Chat freely about anything...

User avatar
By barone_f
#17940 Hello,

what do you think about this:

I configured an ESP01 running in SOFTAP-STATION mode. I used the default address, so my ESP AP running with 192.168.4.1 with DHCP enabled. Now, I would like to connect to another ESP AP(with same configuration of first) using STATION connect features. The other AP running also with the same address-range, so after STATION connect my ESP should have 192.168.4.2. What's happen if from the first ESP I would post data to other ESP that have same address 192.168.4.1? From a point of TCP Stack this is not possible ( duplicate IP address), I don't know exaclty how ESP works in this condition, same behaviour of TCP network card? ( or station interface has priority to server AP interface?)

Thank you in advance.... Rgds :)
User avatar
By Alex P
#18381 I am currently trying to do exacly what you've described. I am using Arduino IDE and their WiFi shield for my purposes, and when I try to connect to the host it refuses to do it. It either routs back to itself, or simply does nothing, without showing any errors (i've no idea tbh).

I've found a function in the SDK to change the softAP IP-addresses (with wifi_set_ip_info(SOFTAP_IF, &info)), but it does not seem to work :?

I'll keep looking into it, but if you find a solution please let me know.
User avatar
By tve
#18465 Trying to have two networks with the same IP address ranges is asking for lots of trouble! The ESP doesn't implement bridging, plus, unless you disable it, you will have DHCP running on both.
User avatar
By Alex P
#18476 Well I found that the v1.0.0 of the SDK provides a function wifi_set_ip_info() that changes the IP of the softwareAP, so being connected to an ESP AP while in AP_STA mode shouldn't be a problem.