Page 1 of 1

Find the IP address of the esp32 by another esp32 on the same local network

Posted: Mon Aug 15, 2022 7:45 am
by arslan43711
I have two esp32 connected to same Wifi. There is a web server on the 2nd esp32. 1st Esp32 want to get some data, but did not know the ip address of the 2nd esp32. How first esp32 figure out the IP address?

Re: Find the IP address of the esp32 by another esp32 on the same local network

Posted: Tue Aug 16, 2022 3:43 am
by lbernstone
The easiest way will be to use mDNS (aka avahi, bonjour). There are examples for service advertisement and browsing at https://github.com/espressif/arduino-es ... S/examples.
Otherwise, learn how DNS and network protocols in general work...

Re: Find the IP address of the esp32 by another esp32 on the same local network

Posted: Tue Aug 16, 2022 9:20 am
by arslan43711
I will test this and update you.

Re: Find the IP address of the esp32 by another esp32 on the same local network

Posted: Sat Aug 20, 2022 10:31 am
by arslan43711
I have tested it worked like knife through butter. Thanks.