Quantcast
Channel: Library Questions - Processing 2.x and 3.x Forum
Viewing all articles
Browse latest Browse all 2896

Using oscP5 over the internet

$
0
0

Hello all, I'm currently trying to figure out how to use the ocsP5 module to communicate over the internet. I have made 2 simple client and server sketches which act as a simple shared drawing canvas. I'm not posting the code in this thread to avoid cluttering, as each one is about 70 lines even after I removed all the unessential code. They can be found here:

Server: https://pastebin.com/NgsRaLJP
Client: https://pastebin.com/L4UqD7Uw

Now the curious thing is that my code works when both are run simultaneously on my computer and the server-ip in the client is set to '127.0.0.1'. Now when I replace that with my actual IP (IPV6) and run both on the same computer a strange effect happens - the server can draw on itself and the client, while the client can only draw on itself. If I export the client to my Android phone and run it off a separate network from the server, neither client nor server can draw on each other. I have triple-checked that the server-listening-port is portforwarded through my router and that the client, when ran on Android, has the 'CHANGE WIFI MULTICAST STATE' permission enabled.

What am I doing terribly wrong? Thanks in advance!


Viewing all articles
Browse latest Browse all 2896

Trending Articles