DEV Community

Discussion on: Make a P2P connection in 10 minutes

 
carloslfu profile image
Carlos Galarza

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.