# P5js and ZeroTier (or Hamachi)

**URL:** <https://discourse.processing.org/t/p5js-and-zerotier-or-hamachi/37916>\
**Category:** Libraries\
**Created:** [July 11, 2022, 3:02am UTC](https://discourse.processing.org/t/p5js-and-zerotier-or-hamachi/37916 "2022-07-11T03:02:26Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![patricio1979](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/patricio1979/32/13609_2.png) [@patricio1979](https://discourse.processing.org/u/patricio1979)\
**Post date:** [July 11, 2022, 3:02am UTC](https://discourse.processing.org/t/p5js-and-zerotier-or-hamachi/37916/1 "2022-07-11T03:02:26Z")

</div>

Is there a way to send OSC data or even messages from P5js through ZeroTier or Hamachi.  
Tryed  
[P5js sketch with oscBrowser.js](https://editor.p5js.org/patricioTics/sketches/EWfGDEA8a)

but it gives me

`SecurityError: Failed to construct 'WebSocket': An insecure WebSocket connection may not be initiated from a page loaded over HTTPS.`

---

<div class="post-metadata">

**Author:** ![mnse](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/mnse/32/16520_2.png) [@mnse](https://discourse.processing.org/u/mnse)\
**Post date:** [July 11, 2022, 7:21am UTC](https://discourse.processing.org/t/p5js-and-zerotier-or-hamachi/37916/2 "2022-07-11T07:21:36Z")

</div>

Hi @patricio1979,

please try to set ws: to wss:

Cheers  
— mnse

---

<div class="post-metadata">

**Author:** ![patricio1979](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/patricio1979/32/13609_2.png) [@patricio1979](https://discourse.processing.org/u/patricio1979)\
**Post date:** [July 11, 2022, 12:46pm UTC](https://discourse.processing.org/t/p5js-and-zerotier-or-hamachi/37916/3 "2022-07-11T12:46:51Z")

</div>

Really?

Thank you! I’ll try the new code @mnse  
at the moment it does not show the error, that’s great

Patricio
