Send OSC messages to Nodejs - not working

Attempting to stream messages to a nodejs server using either node-osc or osc npm packages but do not have any messages come through on a server.

Following this example on the backend to receive messages: https://github.com/colinbdclark/osc.js-examples/blob/master/browser/index.js

Then in sonic pi, I’m using the following code form the turorial where the same ip / port are used in the nodejs code / sonic pi.

use_osc "192.168.2.124", 4559
osc "/hello/world"

I’m running this on a mac, is there another step that I’m missing?

hi,

which version of Sonic Pi ? it’s always a good information to indicate.
If you use the spi 3.2 dev version, the osc port is 4560.

if you want to explore open sound control, i suggest you to install openstagecontrol to send or receive osc messages and access a live log system https://openstagecontrol.ammd.net/

I’m not sure you can use the same ip address and port simultaneously with Sonic PI in this way.
I tried a test program on my mac using an osc monitor program. It didn’t work when trying to listen on port 4559 (used by SP) on teh monitor, but when I sent two identical OSC messages to differnt ports on the same ip address that did work.
See this screen shot. (Right click and open in new window to expand)

You can see the program sending the same message with data the tick value (or look value) on two separate ports. The monitor listens on ports 4559 and 8000 but only receives the data addressed to port 8000.