DEV Community

loading...

Discussion on: Make a P2P connection in 10 minutes

Collapse
daaadyaaar profile image
daaadyaaar

Could you share this concept for me as well, I would like to use your solution between some valid computers IP on the internet or a bigger network.
Thanks

Thread Thread
carloslfu profile image
Carlos Galarza Author

I this code doesn't work for you I recommend you to use dev.to/carloslfu/comment/68ih. You don't need to put the computers IP in the code. Computers are connected with each other using the channel name:

/**
 * The channel we are connecting to.
 * Peers should discover other peers in this channel
 */
sw.join('our-fun-channel-name')

Hope it helps

Thread Thread
daaadyaaar profile image
daaadyaaar

Thanks for replying me Carlos.