sebpiq / rhizome

Web server for participative art performances and installations.
GNU General Public License v3.0
164 stars 13 forks source link

Recieving OSC when rhizome is on web #135

Open tatecarson opened 8 years ago

tatecarson commented 8 years ago

Hello again,

As I work more I keep running into further issues and things I need more understanding in. Here's another problem. I'm trying to receive a message from rhizome to supercollider and it works perfectly when using localhost but when tried on AWS it doesn't work, and returns no errors. All of my security permissions are totally open so that shouldn't be a problem. Here's the code relevant to receiving data: from SC

thisProcess.openUDPPort(9002);
b.sendMsg("/sys/subscribe", 9002, "/");

OSCdef(\nodeTrigReceive, { |msg|
  "received from rhizome".postln;
  msg.postln;
  Ndef(\tester, {SinOsc.ar(rrand(200, 600))*EnvGen.kr(Env.perc)}).play;
}, '/trigger');

in the JS

if(this.onset.x == 100) {
   client.send('/trigger', [1])
}

Again, this works when on localhost and with nothing changed fails on AWS. Any ideas? I'm not even sure what to try.

Thanks again!

sebpiq commented 8 years ago

Hmmm ... so the problem is for sending/receiving OSC to/from AWS right? I have done that before with a server I have bought from some other company. I did a couple of remote performances, and they all went pretty smoothly ... So, they only thing I can think of - if you're totally sure that you have opened all the ports on your aws instance - is that your local network is blocking the connection ... are you using windows? Windows can be a bit fiddly with this kind of things ... look in your settings if these ports are opened for the application you use. Do you have a firewall in the network you use? etc ...

If you give me the IP of your aws (you can send it to me by email) and setup the base/ example on it, I can try sending/receiving OSC, so we can see f it comes from the server or if it comes from your computer/network.

On 10/18/16, tatecarson notifications@github.com wrote:

Hello again,

As I work more I keep running into further issues and things I need more understanding in. Here's another problem. I'm trying to receive a message from rhizome to supercollider and it works perfectly when using localhost but when tried on AWS it doesn't work, and returns no errors. All of my security permissions are totally open so that shouldn't be a problem. Here's the code relevant to receiving data: from SC

thisProcess.openUDPPort(9002);
b.sendMsg("/sys/subscribe", 9002, "/");

OSCdef(\nodeTrigReceive, { |msg|
  "received from rhizome".postln;
  msg.postln;
  Ndef(\tester, {SinOsc.ar(rrand(200, 600))*EnvGen.kr(Env.perc)}).play;
}, '/trigger');

in the JS

if(this.onset.x == 100) {
   client.send('/trigger', [1])
}

Again, this works when on localhost and with nothing changed fails on AWS. Any ideas? I'm not even sure what to try.

Thanks again!

You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/sebpiq/rhizome/issues/135

Sébastien Piquemal * ----- @sebpiq -----* http://github.com/sebpiq ----- http://funktion.fm