I have 2 host that is part of one IP network 192.168.1.0/24. Let's say one of them is host A with IP address 192.168.1.1 and other host is B with IP address 192.168.1.2.
I have an application that generates UDP stream on host B and send it to 192.168.1.1:12345. Now I want to N separate processes running on host A to be able to receive this stream simultaneously. How can I do it?
You can use multicast. Modify your application to send UDP packets to some multicast group address (e.g. 239.255.0.1:12). Any number of processes can subscribe to that group and receive the data. It might might require enabling IGMP on your network.
Other option is to use proxy.