sonic-pi-net / sonic-pi

Code. Music. Live.
https://sonic-pi.net
Other
10.76k stars 921 forks source link

OSC between two machines on same network #3077

Open NamelessChamber opened 2 years ago

NamelessChamber commented 2 years ago

Here are copies of the log info from both the sending and receiving machine. It looks like something is being sent but it is empty?

Sending Machine Log.pdf Receiving Machine Log.pdf

samaaron commented 2 years ago

Hi there, in order to receive OSC messages, you don't have to write any code at all - the messages should just appear in the cue log. The fact that they aren't, means that something is not quite working correctly.

Can you confirm that you're able to ping the receiving machine from the sending machine from the terminal?

NamelessChamber commented 2 years ago

Hi Sam,

I'm so sorry to ask, but do you mean the SonicPi terminal or the command line terminal on my machine? If it is SonicPi terminal are you saying that I should just write the use_osc command for the sending machine and the sync for the receiving machine with nothing else? Thanks!

samaaron commented 2 years ago

Hi there,

I just want to check to ensure that the machines can see each other before we look any further into any possible issues within Sonic Pi.

One approach to do this is to use the ping command in the OS's terminal - so Terminal.app on macOS or cmd.exe on Windows. Both should support you typing ping followed by the IP address of the receiving machine. I'd love to know what the output is...

NamelessChamber commented 2 years ago

Ah, yes, thanks. As I was running ping I came across something odd with the receiving machine. In system preferences (Catalina 10.15.7) the IP address was different than the IP address that showed up in IO under Prefs. I ran ping on the sending machine (Monterey 12.1) twice, once with the first IP address and once with the second IP address. Attached are what showed up in the Terminal. I guess it is something happening (or not happening) between the machines?

Terminal IP Address #1 Terminal with IP Address #2

?

samaaron commented 2 years ago

Yep, looks like the first ip address didn't work, whilst the second one did.

Could you try sending to the second IP address from Sonic Pi? Does that work?

NamelessChamber commented 2 years ago

I'm not currently on that machine, but what I've encountered is that in schools that have their own in-house network something seems to be blocking OSC communication between devices, even if they "approve" TouchOSC.  It's interesting because it seems to be happening when the IP address begins with a 10, don't know if that means anything. My IT person also thinks it might have to do with the school's router?   On Wednesday, July 20, 2022 at 09:31:34 AM EDT, Sam Aaron @.***> wrote:

Yep, looks like the first ip address didn't work, whilst the second one did.

Could you try sending to the second IP address from Sonic Pi? Does that work?

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>