Forums > MaxMSP

networking


alb
December 9, 2007 | 6:30 pm

I have a patch in which I would like to send messages to 2 other computers and have them be able to send messages back. I have done this using OSC with 2 computers and an ethernet connection but I’m a bit stumped how to get started with 3 computers. I would like to keep the network local to avoid problems with public networks.

Any suggestions?

I’ve just started looking at "mjx net.maxhole" but I don’t see any help on how to route the messages.

Thanks.


December 9, 2007 | 8:54 pm

I am doing exactly this using udpsend and udpreceive. All three computers
are connected to an ethernet hub. Each computer has a manually assigned IP
address (Network in System Preference). With udpsend ip port, you can send
to any one of the machines by specifying its IP address and choosing a port.
I use ports in the 7000-9000 range.

Here is a big hint…

#P window setfont "Sans Serif" 9.;
#P window linecount 1;
#P newex 410 219 86 196617 udpreceive 7002;
#P comment 410 202 114 196617 receive from machine 2;
#P comment 410 126 100 196617 send to machine 2;
#P newex 410 141 114 196617 udpsend 10.0.1.3 7003;
#P newex 410 181 86 196617 udpreceive 7001;
#P newex 409 100 114 196617 udpsend 10.0.1.1 7003;
#P window setfont "Sans Serif" 10.;
#P comment 408 63 137 196618 Machine 3 IP = 10.0.1.3;
#P window setfont "Sans Serif" 9.;
#P comment 409 84 100 196617 send to machine 1;
#P comment 410 164 114 196617 receive from machine 1;
#P user panel 391 40 167 217;
#X brgb 191 191 191;
#X frgb 0 0 0;
#X border 1;
#X rounded 0;
#X shadow 0;
#X done;
#P newex 231 219 86 196617 udpreceive 7003;
#P comment 231 202 114 196617 receive from machine 3;
#P comment 231 126 100 196617 send to machine 3;
#P newex 231 141 114 196617 udpsend 10.0.1.3 7002;
#P newex 231 181 86 196617 udpreceive 7001;
#P newex 230 100 114 196617 udpsend 10.0.1.1 7002;
#P window setfont "Sans Serif" 10.;
#P comment 229 60 135 196618 Machine 2 IP = 10.0.1.2;
#P window setfont "Sans Serif" 9.;
#P comment 230 84 100 196617 send to machine 1;
#P comment 231 164 114 196617 receive from machine 1;
#P user panel 212 40 167 217;
#X brgb 191 191 191;
#X frgb 0 0 0;
#X border 1;
#X rounded 0;
#X shadow 0;
#X done;
#P newex 46 219 86 196617 udpreceive 7003;
#P comment 46 202 114 196617 receive from machine 3;
#P comment 46 126 100 196617 send to machine 3;
#P newex 46 141 114 196617 udpsend 10.0.1.3 7001;
#P newex 46 181 86 196617 udpreceive 7002;
#P newex 45 100 114 196617 udpsend 10.0.1.2 7001;
#P window setfont "Sans Serif" 10.;
#P comment 44 57 139 196618 Machine 1 IP = 10.0.1.1;
#P window setfont "Sans Serif" 9.;
#P comment 45 84 100 196617 send to machine 2;
#P comment 46 164 114 196617 receive from machine 2;
#P user panel 27 40 167 217;
#X brgb 191 191 191;
#X frgb 0 0 0;
#X border 1;
#X rounded 0;
#X shadow 0;
#X done;
#P window clipboard copycount 30;

Cheers
Gary Lee Nelson
Oberlin College
http://www.timara.oberlin.edu/GaryLeeNelson

On 12/9/07 1:30 PM, "anne la berge" wrote:

>
> I have a patch in which I would like to send messages to 2 other computers and
> have them be able to send messages back. I have done this using OSC with 2
> computers and an ethernet connection but I’m a bit stumped how to get started
> with 3 computers. I would like to keep the network local to avoid problems
> with public networks.
>
> Any suggestions?
>
> I’ve just started looking at "mjx net.maxhole" but I don’t see any help on how
> to route the messages.
>
> Thanks.



alb
December 9, 2007 | 9:23 pm

Gary,

Thanks. What kind of hub are you using?


December 10, 2007 | 3:38 am

It’s an old D-Link, nothing special. You should be able to find one and
Best Buy or Office Max. Mine has slots for five connections.

On 12/9/07 4:23 PM, "anne la berge" wrote:

>
> Gary,
>
> Thanks. What kind of hub are you using?
>
>

Cheers
Gary Lee Nelson
Oberlin College
http://www.timara.oberlin.edu/GaryLeeNelson


December 13, 2007 | 2:46 am

networking is great with udp or tcp/ip. especially on Macs with no firewall issues. Matrices can also be sent readily–real-time collaborative video mixing?? sure. Textedit areas for chat… routing MIDI commands to each other… jit.desktop to see what people are doing… even audio with jit.catch~ and jit.release~, though I haven’t tried that and don’t know the quality of it.

It’s really cool to see data from one computer come up on another… the possibilities for collaboration are pretty much limitless. If it’s a "instructor and student" setup, you can easily incorporate some control by having a transparent button that covers the whole screen, and by default ignores clicks. When you want to get their attention, have it "respondtoclick" via thispatcher (then they can’t click anything in the patch with the mouse). of course, keystrokes still work, but you could gate them and shut the gate. heh. the power!!

–CJ



alb
December 13, 2007 | 6:45 am

Thanks for the tips. I’ve got a network running now with udp and will start to build complexity on the messages in the future.


Viewing 6 posts - 1 through 6 (of 6 total)