python-osc icon indicating copy to clipboard operation
python-osc copied to clipboard

Problems with ThreadingOSCUDPServer [receiving in Ubuntu terminal]

Open ghost opened this issue 4 years ago • 1 comments

Hello all.

I am doing a bridge between MaxMSP and Python and it works fine to send data from python to a patch using udp simple client. But the server example (server = osc_server.ThreadingOSCUDPServer(("127.0.0.1", 5006), dispatcher)) doesn't seem to work (making bidirectional communication using 2 different ports). To know that I'm receiving the data from one computer to another I printed in the terminal the packets and they are arriving, so no problem with the address/port (16:15:31.593936 IP 192.168.1.11.56682 > 192.168.1.12.5006: UDP, length 16)

Any way to troubleshoot this? I'm using exactly the same code as provided in the example and nothing happens. Is there a way to just print all incoming data from that port using the server object?

Thanks!

ghost avatar Sep 28 '21 15:09 ghost

This server = osc_server.ThreadingOSCUDPServer(("127.0.0.1", 5006), dispatcher) needs to be server = osc_server.ThreadingOSCUDPServer(("0.0.0.0", 5006), dispatcher) when not on the same host, 127.0.0.1 means you are specifically only listening for messages originating from the same computer.

jpc0 avatar Jan 25 '22 14:01 jpc0