Open KonVas opened 3 years ago
Hi KonVas, I am currently struggling with the same issue, did you ever find a solution to this problem?
I probably did, I was messing up the addresses in. Below is my working code:
let udp = new osc.UDPPort({
// This is the port we're listening on.
localAddress: "0.0.0.0",
localPort: 57121,
// This is where sclang is listening for OSC messages.
remoteAddress: "127.0.0.1",
remotePort: 57120
})
I am working on a NodeJS/Express app.
I have this addresses below and while WebSocket works okay on the host machine, when running my app on another computer connected to the local network the message is not send to SC on its local SC of the remote computer, though is send to the host computer running Node/Server. That said, this is something I want, to get all OSC from all devices running the app but I would also think that the osc mesages are also bind to their local SC? Or I am missing out something trivial here.
Unless this is expected, I am speculating that I only receive the osc msgs because of the IP address in use below.
let udp = new osc.UDPPort({ // This is the port we're listening on. localAddress: "0.0.0.0", localPort: 57121, // This is where sclang is listening for OSC messages. remoteAddress: "0.0.0.0", remotePort: 57120 })
var wss = new WebSocket.Server({ port: 8081 })