Dear all
I attempted to create a network in my mac and connect another mac to my network. Connection was succeed and both mac received a self-assigned Ip address from this network(computer-to-computer network). Then I setup my code like this:
my mac
OscP5 myMac;
NetAddress otherMac;
void setup(){
myMac = new OscP5(this, 32000);
otherMac = new NetAddress("169.254.163.96",12000)
OscMessage msg = new OscMessage("/hello");
msg.add("hello");
myMac.send(msg,otherMac);
}
void draw(){}
Other mac
OscP5 otherMac;
void setup(){
otherMac = new OscP5(this, 12000);
}
void draw(){}
void oscEvent(OscMessage msg){
if(msg.checkAddrPattern("/hello")) println(msg.get(0).stringValue());
}
I run these code each one in the correspondent mac and I don’t receive any message.
Is it possible to use OscP5 with this kind of network or there is some tweaks I need to do in the mac preferences.
Thank you in advance