The ESP32 I am connecting to only does mDNS. What you are discussing here is a subscribe basically like MQTT. My purpose is to have the mDNS discover from an item with NO IP address until it is assigned one via the DHCP server based on its MAC address. Looking at Wireshark in my first post , I can get all the information I want from that.
All I want B4J to is open up the same port that Wireshark is opening and receive the data. I cannot see why that is impossible.
To give you more perspective, I have 50 ESP's all connected via Ethernet. I need to know that they are on and working . At the moment I use a DHCP server with the IP related to MAC address. Then I have to ping each IP address wait for it to fail before I move on, this is a time consuming process. Using mDNS, I will get notification of each one within a few seconds that each one is alive. There are other reasons why ping is not the best method. in the Database I have over 200 MAC addresses I do not know which 50 will be the ones used.
The units used each day might be different. Once the units are determined as alive , We allocate new IP addresses to them via DHCP so that the Adresses are sequential in each column. ( This is required for the final product to use its map to project the correct data to each ESP depending on its position in the matrix.
View attachment 159426
is the setting on ESP