# Using OscP5 with computer-to-computer network

**URL:** <https://discourse.processing.org/t/using-oscp5-with-computer-to-computer-network/11986>\
**Category:** Libraries\
**Created:** [June 11, 2019, 6:30am UTC](https://discourse.processing.org/t/using-oscp5-with-computer-to-computer-network/11986 "2019-06-11T06:30:04Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![litiec](https://avatars.discourse-cdn.com/v4/letter/l/4da419/32.png) [@litiec](https://discourse.processing.org/u/litiec)\
**Post date:** [June 11, 2019, 6:30am UTC](https://discourse.processing.org/t/using-oscp5-with-computer-to-computer-network/11986/1 "2019-06-11T06:30:04Z")

</div>

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

```auto
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

```auto
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

---

<div class="post-metadata">

**Author:** ![jeremydouglass](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/jeremydouglass/32/20_2.png) [@jeremydouglass](https://discourse.processing.org/u/jeremydouglass)\
**Post date:** [June 13, 2019, 7:09pm UTC](https://discourse.processing.org/t/using-oscp5-with-computer-to-computer-network/11986/2 "2019-06-13T19:09:00Z")

</div>

It has been a while, but I don’t think those OSC ports are open on your Macs by default? Last time I was doing mac-to-mac OSC a few years ago I _believe_ that I was using OSCulator to route the messages, which should still be up to date with the latest MacOS. (untested)

[https://osculator.net/](https://osculator.net/)
