General area when it fits no where else

Moderator: Mmiscool

User avatar
By Moniman
#51259 Hi,
I am a newbie for the esp8266 and my knowledge of the networks world is very low.
Is it possible to connect several esp8266 on the same LAN.
The adress of all ESP8266 is always 192.168.4.1?

Sorry if it is a stupid question.

Yves
User avatar
By martinayotte
#51266 192.168.4.1 is the IP address in AP mode, but if you connect modules to your own network with STA mode, it is your router that will provide the IP to modules, each one getting different one. Addtionally, if you use the modules in STA+AP mode, each modules will have 2 separate IP, the AP, which stays at 192.168.4.1, and the one given by the router.
User avatar
By forlotto
#51306 Yes what was said above is correct with one exception.

In basic if you use a static ip that IP also becomes your IP in station and ap mode. Basic v3.0 and up have this feature so that if you have many devices it is easier to keep track of and if you have a third party application to work alongside basic you don't have to consider continued upgrades to your code to make things work.

Anyhow I hope this helps clear any air left with this one and did not add confusion to the mix. But it is important to know these things.
User avatar
By Moniman
#51320 Thanks for replies.
They show me the deepness of my ignorance.

Return to the wifi commands of EspBasic:
If I use CONNECT "SSID" "Password" , my ESP8266 is now a STAtion ?
If I use AP "SSID" "Password" , I create a new Access Point ?
In practice what are the difference between STA and AP?

Can the UDP functions be a solution to the problem?
Each Esp communicate with the same adress but on different port?

I know I have to learn the basis before continuing, can you tell me a tutorial to clarify the world of internet.

Have a nice day,

Yves