# Js-ipfs connect to my own network

**URL:** <https://discuss.ipfs.tech/t/js-ipfs-connect-to-my-own-network/12421>\
**Category:** Uncategorized\
**Tags:** js-ipfs\
**Created:** [October 11, 2021, 7:59pm UTC](https://discuss.ipfs.tech/t/js-ipfs-connect-to-my-own-network/12421 "2021-10-11T19:59:34Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![vasiliystukalo](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ipfs.tech/vasiliystukalo/32/5548_2.png) [@vasiliystukalo](https://discuss.ipfs.tech/u/vasiliystukalo)\
**Post date:** [October 11, 2021, 7:59pm UTC](https://discuss.ipfs.tech/t/js-ipfs-connect-to-my-own-network/12421/1 "2021-10-11T19:59:34Z")

</div>

Hello!) Is there any possibility to connect by js-ipfs CLI to my own network?  
I believe there is a similar question [will js-ipfs support private network feature as go-ipfs did (via swarm.key) ? · Issue #1630 · ipfs/js-ipfs · GitHub](https://github.com/ipfs/js-ipfs/issues/1630).  
Sorry if my question looks not good) I’m new in this area)

---

<div class="post-metadata">

**Author:** ![daviddias](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ipfs.tech/daviddias/32/40_2.png) [@daviddias](https://discuss.ipfs.tech/u/daviddias)\
**Post date:** [October 12, 2021, 4:01pm UTC](https://discuss.ipfs.tech/t/js-ipfs-connect-to-my-own-network/12421/2 "2021-10-12T16:01:18Z")

</div>

Hi @vasiliystukalo !

@jacobheun shipped private-networks in js-ipfs back 2018, so pretty sure it is there. Let me ping him to share a tutorial/example with you

 ![image](https://us1.discourse-cdn.com/flex020/uploads/ipfs1/original/2X/5/5667dadf09d0cd0b302dfd0812228aabbd6a7382.jpeg)

[![](https://us1.discourse-cdn.com/flex020/uploads/ipfs1/original/2X/d/db22837b41168452eaa88ea06a96f8a414ee4e3c.jpeg "Lab Week 2018 // js-libp2p Progress - Jacob Heun") ](https://www.youtube.com/watch?v=t7K0TDzdT-8)

---

<div class="post-metadata">

**Author:** ![jacobheun](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ipfs.tech/jacobheun/32/3385_2.png) [@jacobheun](https://discuss.ipfs.tech/u/jacobheun)\
**Post date:** [October 12, 2021, 6:07pm UTC](https://discuss.ipfs.tech/t/js-ipfs-connect-to-my-own-network/12421/3 "2021-10-12T18:07:57Z")

</div>

You can configure js-ipfs to leverage a pre shared key. It doesn’t currently read a swarm.key file from the repo like go-ipfs but you can take a look at the js-libp2p example, [js-libp2p/examples/pnet at master · libp2p/js-libp2p · GitHub](https://github.com/libp2p/js-libp2p/tree/master/examples/pnet), for how to configure your libp2p node. You can couple that with the ability to customize libp2p within js-ipfs, [js-ipfs-examples/examples/custom-libp2p at master · ipfs-examples/js-ipfs-examples · GitHub](https://github.com/ipfs-examples/js-ipfs-examples/tree/master/examples/custom-libp2p), to enable the pre shared key protector.

---

<div class="post-metadata">

**Author:** ![vasiliystukalo](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ipfs.tech/vasiliystukalo/32/5548_2.png) [@vasiliystukalo](https://discuss.ipfs.tech/u/vasiliystukalo)\
**Post date:** [October 12, 2021, 8:30pm UTC](https://discuss.ipfs.tech/t/js-ipfs-connect-to-my-own-network/12421/4 "2021-10-12T20:30:13Z")

</div>

Thank you for your time and good answer!  
Do you plan to include such a possibility in future releases?  
(if yes could you pls say the approximate date?)
