OSC Receiver different behaviour between VST3 and AU

Following the OSC tutorial, I made a plugin that sends on port 7000 and receives on port 7001.

AU in Ableton raises a connection error if I add another instance of the plugin. VST3 in Reaper does not.

I want to have multiple instances of the plugin that use the same port for receiving.

It may work if you use DatagramSocket::setEnablePortReuse

1 Like

Thanks @G-Mon for the response. I tried wrapping a port with a datagram socket, however, when I open another instance of the plugin, I had an error because the port is already bound to the first instance.

You’ll probably need to write a class to share the UDP socket. And then add a listener to this class that forwards the data to your OSC parsers.