I tried setting Swarm.RelayService.Enabled to true and added “/ip4/0.0.0.0/tcp/4002/ws”, “/ip6/::/tcp/4002/ws”, in Addresses.Swam.
I am trying to connect my js-ipfs (browser-based) to this node using this config
config: {
....
Addresses: {
API: '/ip4/127.0.0.1/tcp/0',
Swarm: ['/ip4/127.0.0.1/tcp/4002/ws/p2p/<PEER_ID>/p2p-circuit'],
Gateway: '/ip4/0.0.0.0/tcp/0'
},
....
}
But it’s not able to connect it shows this error Error: Transport (Circuit) could not listen on any available address
btw if I use the WebRTC-Star signaling server with the same configuration (in Swarm), it works.
What I am doing wrong?