question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

doesn't fully connect > 2 peers

See original GitHub issue

my script:

var swarm = require('webrtc-swarm')
var signalhub = require('signalhub')

var hub = signalhub('swarm-example', ['http://localhost:8000'])

var sw = swarm(hub)

sw.on('peer', function (peer, id) {
  console.log('connected to a new peer:', id)
  console.log('total peers:', sw.peers.length)
})

sw.on('disconnect', function (peer, id) {
  console.log('disconnected from a peer:', id)
  console.log('total peers:', sw.peers.length)
})

this is browserified and served up in latest chrome. I also have signalhub running locally with the command:

signalhub listen -p 8000

I open 3 browser windows to the test script from above. the first 2 connect. The 3rd doesn’t.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:12 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
G-Raycommented, Oct 9, 2018

Any update on this ?

2reactions
perguthcommented, Sep 6, 2016

Yes, that happens. I can’t tell you why but just open your third and fourth tab using the browsers incognito mode. Then it will work. Please confirm.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Fix uTorrent Stuck on Connecting to Peers
You can check this setting is active by opening the uTorrent client and pressing Options > Preferences, then making sure the Enable UPnP...
Read more >
Here is the fix to Peer-2-Peer Connection Problems
I've seen many reviews complaining about the connection issues of these lobbies, so here is exactly how to fix them.
Read more >
IKEv2 Doesn't support Multiple Peers action to take
"Multiple peers used for redundancy is not supported with IKEv2 on the ASA. In IKEv1, for redundancy purposes, one can have more than...
Read more >
Fix uTorrent “Connecting to Peers” Problem - Not Downloading
For more information, follow this guide:https://www.techy.how/tutorials/utorrent- connecting -to- peers -fixA short tutorial on how to fix the ...
Read more >
How To Fix uTORRENT STUCK On Connecting To Peers
You just want to download your ( completely legal) BitTorrent files, but uTorrent is stuck on “ Connecting to peers ” and the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found