problems connecting osc via internet
hi there. i'm working on building a public interactive installation that will have two differnt touch screen computers connected via internet in two seperate cities. i can't seem to get them to talk over the internet right now. i feel ive exhausted all the forums on this one...
i've had no problem getting the osc to work with two instances of max locally inside one computer(using the 127.0.0.1 ip). i'm working with the netsend/netreceive objects and i've set up two laptops on two completely different wireless connections inside my apt building (one is at my neighbors place for quick troubleshooting). the objects are set for UDP; i've specified the correct ip address for each computer (i got the ips for each comp here http://whatismyipaddress.com/); and ive tried using the same port on both machines as well as separate ports for each machine just in case (with the firewalls turned off on both XP systems of course).
i'm still fighting the learning curve when it comes to networks so theres probably something simple i'm missing here; . could it have something to do with one of the wireless routers blocking access or is the problem possibly with the isp? do i need to have some kind of third party server software set up on one of the machines or on a third machine? who knows... if any of you out there who have successfully connected two instances of max via the internet could tell me how you made it work that would be killer...
here's the patch im working with:
you probably need port forwarding on your routers to get this working.
marius.
jason wrote:
> hi there. i'm working on building a public interactive installation that will have two differnt touch screen computers connected via internet in two seperate cities. i can't seem to get them to talk over the internet right now. i feel ive exhausted all the forums on this one...
>
> i've had no problem getting the osc to work with two instances of max locally inside one computer(using the 127.0.0.1 ip). i'm working with the netsend/netreceive objects and i've set up two laptops on two completely different wireless connections inside my apt building (one is at my neighbors place for quick troubleshooting). the objects are set for UDP; i've specified the correct ip address for each computer (i got the ips for each comp here http://whatismyipaddress.com/); and ive tried using the same port on both machines as well as separate ports for each machine just in case (with the firewalls turned off on both XP systems of course).
>
> i'm still fighting the learning curve when it comes to networks so theres probably something simple i'm missing here; . could it have something to do with one of the wireless routers blocking access or is the problem possibly with the isp? do i need to have some kind of third party server software set up on one of the machines or on a third machine? who knows... if any of you out there who have successfully connected two instances of max via the internet could tell me how you made it work that would be killer...
>
> here's the patch im working with:
>
> max v2;
> #N vpatcher 115 46 711 504;
> #P window setfont "Sans Serif" 9.;
> #P window linecount 1;
> #P message 57 221 126 196617 connect 74.140.148.54 3001;
> #P number 124 312 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
> #P message 124 332 60 196617 send bla $1;
> #P message 58 243 55 196617 disconnect;
> #P flonum 57 312 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
> #P message 57 332 61 196617 send foo $1;
> #P number 42 398 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
> #P newex 42 363 52 196617 netsend 1;
> #P newex 194 394 52 196617 print UDP;
> #P newex 194 351 93 196617 netreceive 3001 1;
> #P fasten 9 0 2 0 62 238 47 238;
> #P fasten 7 0 2 0 129 351 47 351;
> #P fasten 4 0 2 0 62 351 47 351;
> #P fasten 6 0 2 0 63 261 47 261;
> #P connect 2 0 3 0;
> #P connect 5 0 4 0;
> #P connect 8 0 7 0;
> #P connect 0 0 1 0;
> #P pop;
>
On 12 mars 08, at 07:49, jason wrote:
> hi there. i'm working on building a public interactive installation
> that will have two differnt touch screen computers connected via
> internet in two seperate cities. i can't seem to get them to talk
> over the internet right now. i feel ive exhausted all the forums on
> this one...
>
> i've had no problem getting the osc to work with two instances of
> max locally inside one computer(using the 127.0.0.1 ip). i'm
> working with the netsend/netreceive objects and i've set up two
> laptops on two completely different wireless connections inside my
> apt building (one is at my neighbors place for quick
> troubleshooting). the objects are set for UDP; i've specified the
> correct ip address for each computer (i got the ips for each comp
> here http://whatismyipaddress.com/); and ive tried using the same
> port on both machines as well as separate ports for each machine
> just in case (with the firewalls turned off on both XP systems of
> course).
>
> i'm still fighting the learning curve when it comes to networks so
> theres probably something simple i'm missing here; . could it have
> something to do with one of the wireless routers blocking access or
> is the problem possibly with the isp? do i need to have some kind
> of third party server software set up on one of the machines or on a
> third machine? who knows... if any of you out there who have
> successfully connected two instances of max via the internet could
> tell me how you made it work that would be killer...
If you make a ping, do the 2 computers see each other?
ej
On 12 Mar 2008, at 06:49, jason wrote:
> i've specified the correct ip address for each computer (i got the
> ips for each comp here http://whatismyipaddress.com/);
That won't help much if your machines are behind routers; this IP
address will be whatever the outermost router reports to the outside
world. If the actual computers have IP addresses like 192.168.x.x or
10.x.x.x then they are on internal networks, and you'll have to
program the routers to do reverse-NAT to route incoming packets to the
machines themselves.
-- N.
Nick Rothwell - nick@cassiel.com - www.cassiel.com
--- open-source goodies for MaxMSP: Python, Groovy, Nixie Tubes,
--- rotatable text bricks, databases: all at www.loadbang.net