# Facing issue with the private network

**URL:** <https://discuss.ipfs.tech/t/facing-issue-with-the-private-network/6298>\
**Category:** Uncategorized\
**Created:** [September 13, 2019, 8:52am UTC](https://discuss.ipfs.tech/t/facing-issue-with-the-private-network/6298 "2019-09-13T08:52:16Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![danishshaikh42](https://avatars.discourse-cdn.com/v4/letter/d/50afbb/32.png) [@danishshaikh42](https://discuss.ipfs.tech/u/danishshaikh42)\
**Post date:** [September 13, 2019, 8:52am UTC](https://discuss.ipfs.tech/t/facing-issue-with-the-private-network/6298/1 "2019-09-13T08:52:16Z")

</div>

Hi,

I have followed the below link to create a private network between two nodes.

> **[Deploy a private IPFS network in 5 steps](https://medium.com/@s_van_laar/deploy-a-private-ipfs-network-on-ubuntu-in-5-steps-5aad95f7261b)**
>
> IPFS (InterPlanetary File System) is a peer-to-peer distributed file system that stores and retrieves files in a BitTorrent-like way. The…

I am running the daemon thruough my code written in Node js which is as follows:  
const IPFS = require(‘ipfs’)  
const node = new IPFS()

node.on(‘ready’, () =\> {  
// start the API gateway  
const Gateway = require(‘ipfs/src/http’);  
const gateway = new Gateway(node);  
return gateway.start();  
})

I am getting the below error, Kindly someone help  
/home/ubuntu/node\_modules/libp2p/src/index.js:111  
throw new Error(‘Private network is enforced, but no protector was provided’)

Thanks
