any idea why this updsend/udpreceive setup doesn't work ?
we’re havig bad times here trying to make use of udpsend/udpreceive at a local network, can’t figure out why.
The network is via etherenet and an ethernet hub. Both computer appear in the list of network machines in the finder. Pinging the 2d computer from the first, with the mac terminal, gives normal results. The sender computer is an iMac from circa 2010, the second (receiver) a macbook pro from circa the same era. Max is either 6.1 on both computers, or 6.0.? on one (can’t remember for sure) and 6.1 on the other. Their IP adress is fixed on the local netork, we checked double triple checked if it was the good IP. We tried several ports (first 5000 then 4200).
Here are the relevant part of the patches used :
----------begin_max5_patcher---------- 364.3ocsRsraCBCD7L7UX4yTD1jGjdqeGUQUFrShi.CAaRoMJ+6EuFTnMznz H0K1r6Nr6Ly5S9d3zxVgFidF8Jxy6jumGjxlvqO1CWvZyxYZ.FtPn0rsBbfq lQzZf7G1v3GFxtoTYTrBAT4kZIKenREyjsSp19VsHy3laxxkgQAHRLMwdOi. QceiV2+SplBoJWX.FP6SJ4P2KS2+DMFeAYYiY.JYDczxOA5Pncs2k1gz7Qkv QDLFs1V4ruu8H3NcjzFioTcKAF6jTLYk8lFMbNs.ISHPxsE3UJIko19XpQId uahWsda3UZghiHqngKRBmSConYznnGZiujD6LjYtM+73+riPRlOskD8K67QV ALDbtT8yW9.Us4+t+nKapyFb1g0A5BW4BsQpXFY2qfKf.FNB0NImKTioHWpY o4BPTQStptaBE+uRHmgwppNJp08ME3R2Sm8k01vEAPnT4BgNhqEGkC3S7sc6 r+W.ubNA9A -----------end_max5_patcher-----------
----------begin_max5_patcher---------- 301.3ocoRsrSCCCD7ryWgkOGhbdnJJ236.UgbiWnaUhcjsSnPU+2odSBMkGG .trR6rimcFaeLgI1ZO.dA+N9CbF6XBiQPQ.1TOSzpNT2n7DMgAdwtcuHcbT. NDH3NGZBynOYMAipEnI26PUy7jNUndGZd9QGTGFWaU45LYJuhpkUwZgLSx2L cDSeKZZf.s97IPTSZe1I2TrRbgosOLSUtvLd7MxL4EYxH5ojjXI8+k4dc24X .3.vqJjx+T5KKKhINuLVWu92m9xpuO94+P7mfGYFdsCF8gPv2r3lg1unAMe9 yAEgH90WWdauqdVpO7E+RNzfOfFU.slkrVcEocnVClkOdZzq11.Tdkeweptt Av4mzj7x4Gt8VWrcUJ0hlwVRQgCFvY92lDU6Tx6.qLpr4C -----------end_max5_patcher-----------
the ‘relevent part of patches’ probably mean nothing, but that’s what we used to test, and what didn’t work… Maybe the problem comes from..; i don’t know;… somewhere ?
some precisions :
sender computer is 2009 iMac osx 10.5.8, max6.1, 32 bit mode
receiver is 2009 MacBookPro, osx 10.5.8, max6.0.8
in the address, are you sure it’s 68 instead of 168? 192.168.x.x is common for local networks.
it was indeed 192.168.0.2, but i had spellt it right in the original patch, as odd as it sounds.
Also, i tried to udpsend/udpreceive (with the right spelled adresses…) with the testing utility, and it didn’t work, even though the localhost did work.
I recently ran into the problem that udpsend (or was it receive?) didn’t initialise properly. I hav no idea why, but i typed eg
[udpsend localhost 5000]
And it did not bind to the port 5000. I think it even reported "binding to port 0" in the max window.
I had this problem several times and would say i can assure it wasn’t a spelling problem.
Anyways, when i sent "port 5000" to the object with a message box, it bound properly and everything worked.
I don’t know if that helps. Do you have the correct "binding to port 4200" message in the max window?
Does udpsend/receive support host names like jit.net.send/recv does? I had similar problems with jit.net.send/recv till I used my computers’ network names instead of IP’s. My desktop’s name is dtrHacPro. Network name then is dtrHacPro.local .
@dtr : then, could it be that i need to access distant computers with such a naming ? Imagine a distant computer’s desktop is called "computer", then would i need to indicate "computer.local" as its network name ?
@woyteg : no binding prints in the max window at all for sending. The bindings show only for instantiating a udpreceive object. Though when trying to establish connection to localhost, it works, even though the binding for the udpsend object doesn’t print. The udpsend doesn’t report anything, not even "binding to port 0". Is that not the expected behaviour ?
> @dtr : then, could it be that i need to access distant computers with such a naming ? Imagine a distant computer’s desktop is called "computer", then would i need to indicate "computer.local" as its network name ?
Yes. Assuming that computer is on the same local network, not the internet.
> @woyteg : no binding prints in the max window at all for sending. The bindings show only for instantiating a udpreceive object. Though when trying to establish connection to localhost, it works, even though the binding for the udpsend object doesn’t print. The udpsend doesn’t report anything, not even "binding to port 0". Is that not the expected behaviour ?
udpsend doesn’t post to the Max window.
The patches you attached look OK to me.
I’m wondering if the networks settings on the Macs are correct.
I used to set only IP address and subnet mask, but not router, DNS, etc.
This is the settings I usually use:
I would try to:
1. conenct two Macs directly with the ethernet cable and see if it works.
(It does not have to be a so-called ‘cross-cable’. You may use just a normal cable.)
2. use another ethernet cable.
3. use another router.
The last time I had problems with UDP in Max, it was because of firewalls turned on one of the Macs. Make sure they are off or that the ports you use are opened. Beware: ping does work even with firewalls turned on!
aaaaah maybe it’s that because, usually there’s no firewall on a mac is there ? and on one of the problematic machines iirc there is an antivirus….
there is. check system preferences > security & privacy