Skip to content

Should always be able to send remote OSC messages #1658

Open
@emlyn

Description

@emlyn

When the "Receive remote OSC messages" is unchecked, Sonic Pi is also unable to send remote OSC messages. I understand that receiving remote messages is disabled by default as a security measure, but I don't think there's any reason to disable sending of remote OSC messages.

I tried to find it in the code and it doesn't look like this is explicitly enforced, but just a side-effect of the fact that the listening socket (which is bound to localhost when remote OSC receiving is disabled) is also used for sending OSC messages (here https://github.com/samaaron/sonic-pi/blob/64821a8218f917384f061fb6f39f2e05f980bb64/app/server/sonicpi/lib/sonicpi/osc/udp_server.rb#L38).

Would it be better to use a separate socket for OSC sending, that would not have to be bound to any host/port, and thus could send messages anywhere independently of where the receiving socket was bound?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions