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

qaqa85
Posts: 4
Joined: Wed Jun 02, 2021 8:44 am

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

Postby qaqa85 » Wed Jun 02, 2021 8:53 am

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?

Viktor
Posts: 10
Joined: Mon Nov 30, 2020 10:48 am

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

Postby Viktor » Thu Jun 03, 2021 6:26 am

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?

Who is online

Users browsing this forum: Basalt, Bing [Bot] and 336 guests