How to connect a node to private network

I am using gomobile-ipfs on Android, i have started the Ipfs node on mobile, I need to connect to a private network, i have the config file of one of the node and swarm.key file of that private network. With these details how can i connect to that private network and how to check if i am successfully connected to that network.

I tried modifying config file on mobile node and tried to use the swarm.key but i am not able to connect. Can anyone share the standard way to do this.

1 Like