Page 1 of 1

Its possible to make UPD socket listen on 192.168.x.x?

Posted: Wed Jun 02, 2021 8:53 am
by qaqa85
Hi,
I made a program to configure my ESP via UDP. Esp answer to commands that I send normally and by broadcast. And i got a question. Is it possible to made udp socket listen on all adress in 192.168.x.x even if esp didnt have adress from DHPC server?

Re: Its possible to make UPD socket listen on 192.168.x.x?

Posted: Thu Jun 03, 2021 6:26 am
by Viktor
Good question! Seems like I will do something like this in the nearest future :)
didnt have adress from DHPC server
Do you mean that IP address is assigned by the ESP32 itself? I think that in general ESP32 will have IP address. Maybe I will also need to try multicast. As I understand, multicast support is implemented in router (ESP32 in our case). Something like mDNS?