We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexProgramming Questions & HelpSound,  Music Libraries › OscP5 between pc and Mac
Page Index Toggle Pages: 1
OscP5 between pc and Mac (Read 676 times)
OscP5 between pc and Mac
Sep 4th, 2008, 7:25pm
 
I'm experiencing problems with communication between a Mac as a Broadcaster and a pc as a client. The sketch I made worked fine with two Macs. Does anyone know if its possible to receive data from a pc, working from a Mac? Or am I doing something wrong?

Re: OscP5 between pc and Mac
Reply #1 - Sep 4th, 2008, 8:25pm
 
This is what the log said:

### [2008/9/4 19:48:6] PROCESS @ OscP5 stopped.
### [2008/9/4 19:48:6] PROCESS @ UdpClient.openSocket udp socket initialized.
### [2008/9/4 19:48:7] PROCESS @ UdpServer.start() new Unicast DatagramSocket created @ port 12000
### [2008/9/4 19:48:7] PROCESS @ UdpServer.run() UdpServer is running @ 12000
### [2008/9/4 19:48:7] INFO @ OscP5 is running. you (169.254.55.218) are listening @ port 12000
### [2008/9/4 19:48:15] ERROR @ UdpClient.send ioexception while sending packet.
### [2008/9/4 19:48:17] ERROR @ UdpClient.send ioexception while sending packet.
### [2008/9/4 19:48:18] ERROR @ UdpClient.send ioexception while sending packet.
### [2008/9/4 19:48:23] ERROR @ OscP5.openSocket cant create socket Cannot assign requested address: Datagram send failed
### [2008/9/4 19:48:26] ERROR @ OscP5.openSocket cant create socket Cannot assign requested address: Datagram send failed
Re: OscP5 between pc and Mac
Reply #2 - Sep 5th, 2008, 4:01am
 
is the machine you are sending messages from connected to a network according to the ip 169.254.55.21 as seen in the log it doesnt seem so.

"When you boot your machine, the computer will broadcast a request for an IP address and the router will normally answer. If it does not see the DHCP server it will give up and make up an IP address for itself. This IP will often look something like 169.x.x.x. This is a local address that will not likely have any communication with other PCs on the network." from pctechbytes

more things to check:
did you check the firewall settings of your pc maybe the port you want to send osc messages to is blocked are you sending to the right ip address, the ip address of your pc


Re: OscP5 between pc and Mac
Reply #3 - Sep 5th, 2008, 12:49pm
 
Thnx for the reply. But I think there might be a misunderstanding, I'm not trying to connect to the internet, its just a Local Area Network I'm using. I connected my Mac with a plain internet cable to a pc. So I probably need a local IP address.
I'm using your examples from the oscP5 library to do the tests. The broadcaster sketch is open on my Mac and the broadcastclient runs on my pc. My last post was the log I got from my pc, the broadcastclient.

So normally there are no problems between Mac and pc for this issue?
Re: OscP5 between pc and Mac
Reply #4 - Sep 5th, 2008, 1:19pm
 
### [2008/9/5 13:14:55] ERROR @ UdpServer.start()  IOException, couldnt create new DatagramSocket @ port 32000 java.net.BindException: Address already in use


This is what the broadcaster says (the server/Mac)
Page Index Toggle Pages: 1