Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problems with ThreadingOSCUDPServer [receiving in Ubuntu terminal] #144

Open
luisarandas opened this issue Sep 28, 2021 · 1 comment
Open

Comments

@luisarandas
Copy link

luisarandas commented Sep 28, 2021

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!

@jpc0
Copy link

jpc0 commented Jan 25, 2022

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants