I have one OF app that is sending OSC messages and I would like to receive them simultaneously with two other separate OF apps.
However I am finding that whichever of the receiver apps is started first seems to consume all the OSC messages and a second receiver app then receives nothing.
I can see that the OSC code is setting the socket option SO_REUSEADDR so different sockets should be able to share the same port so that should not be the problem.
However I cannot make it work, is it in fact possible with the OSC protocol?
All the apps are running on the same machine and I am sending to 127.0.0.1 local IP address.
I’m using of_v0.9.8_vs_release with vs2015 under Windows 10.
Did you see this thread?
i believe the code posted here is patched for both those requirements:
i have access to the oscpack repo and need to...
It seems it should be working right?
Could you post some code? did you try other IPs?
I could test in my environment too.
Thanks for the link, I didn’t see it before, too many issues in ofxOSC!
I’ll have a good look and let you know how I get on.
I can confirm that I can receive the same OSC messages with multiple apps on the same machine, but only if I send them to the broadcast IP address rather than the local IP address. In my case 192.168.1.255 rather than 127.0.0.1.
Problem with this is that the packets will go all over the subnet, multicasting would be better but that’s outside my scope for now.