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.

Cannot connect peers behind NAT

See original GitHub issue

I’m trying to use discovery-swarm with hyperdrive. On a local network the peers successfully find each other, but if I try to connect to a peer and we both behind NAT, they won’t find each other.

I use the servers used in datland-swarm-defaults.

How you supposed to connect in this case? I’m quite new to these things so maybe I’m missing something.

Issue Analytics

  • State:open
  • Created 7 years ago
  • Reactions:2
  • Comments:11

github_iconTop GitHub Comments

2reactions
samuelmaddockcommented, Jan 13, 2018

I’m experiencing similar issues with this test script I wrote. The peer address is found through the DHT, but no connection is established.

I’ve been testing communication between a Windows 10 and macOS High Sierra machine.

0reactions
mjp0commented, Aug 18, 2018

I wanted to link my issue here from https://github.com/mafintosh/hypercore-multicast-swarm/issues/1 multicast-swarm because it solved my NAT issue. The issue is that it supports only hypercore at the moment but I’m lacking skills to make it support hyperdb.

All help appreciated!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Connecting P2P over NAT? - Stack Overflow
If two devices D1 and D2 want to communicate p2p and they know each other's IP. D1 sends a request to D2 and...
Read more >
Peers behind NAT can not communicate with each other #26
I have one public server (ps1) and two hosts behind NAT h1 and h2. ps1 (Ubuntu ... Peers behind NAT can not communicate...
Read more >
Webserver behind NAT router not reachable - Super User
Since a few days, I cannot access the web server anymore (neither per port 80 nor 443). But only from outside the LAN!...
Read more >
Why can't a host B act as a server, and accept TCP ...
The issue is that B cannot accept inbound connections due to the NAT type. With NAPT there are no open inbound ports. Connections...
Read more >
web server behind NAT cannot be accessed by the same ...
I wonder, why the web server behind the NAT firewall cannot be accessed by its peers by using NAT server domain name or...
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