Hi,
Thanks for quick response?
I am trying server to server connection between two ipfs nodes using WebRTC
i am using jsipfs to create node ,
{ repo: 'repo_name', start: true, // eslint-disable-next-line @typescript-eslint/ban-ts-comment //@ts-ignore preload: { enabled: true, }, EXPERIMENTAL: { ipnsPubsub: true, }, relay: { enabled: true, hop: { enabled: true } }, config: { Addresses: { Swarm: [ // When running outside of the browser we can support TCP connections '/ip4/0.0.0.0/tcp/4015/', '/ip4/0.0.0.0/tcp/4023/ws', '/ip4/<public_ip_webrtc>/tcp/13579/wss/p2p-webrtc-star' ] }, Bootstrap: [ '/ip4/<Bootstrap server ip>/tcp/4003/ws/p2p/12D3KooWDuuNp8dSiuZPX7293Yx8HXTmyb2cALk8x4JiZkVBogcv', // '/ip4/127.0.0.1/tcp/4001/ws/p2p/12D3KooWGQdBm2ceUSgggojHNmCdesywimN7tiVcgEYcYViKS8y5', // '/dns4/ipfs-staging.steer.finance/tcp/4422/ws/p2p/12D3KooWGQdBm2ceUSgggojHNmCdesywimN7tiVc/gEYcYViKS8y5', ], Discovery: { // MDNS: { // Enabled: true, // Interval: 10 // }, webRTCStar: { Enabled: true, }, }, }, }
I have tried with one more configuration which is below
{ repo: 'your-repo-path', config: { Addresses: { Swarm: [ "/ip4/0.0.0.0/tcp/4002", "/ip4/127.0.0.1/tcp/4003/ws", // "/dns4/wrtc-star1.par.dwebops.pub/tcp/443/wss/p2p-webrtc-star", // "/dns4/wrtc-star2.sjc.dwebops.pub/tcp/443/wss/p2p-webrtc-star", '/ip4/<PUBLIC_IP_WEBRTC_SERVER>/tcp/13579/wss/p2p-webrtc-star' ] } }, libp2p: { modules: { transport: [webRTCStar] }, config: { peerDiscovery: { webRTCStar: { // <- note the lower-case w - simport * as IPFS from 'ipfs-core'ee https://github.com/libp2p/js-libp2p/issues/576 enabled: true } }, transport: { WebRTCStar: { // <- note the upper-case w- see https://github.com/libp2p/js-libp2p/issues/576 wrtc } }, Bootstrap: [] } } }
WebRTC server js-libp2p-webrtc-star/packages/webrtc-star-signalling-server at master · libp2p/js-libp2p-webrtc-star · GitHub
Let me know if any other information is required
Thanks