Skip to content

Cannot connect to nodes over the internet behind NAT. Throwing random errors.  #213

Closed
@vaibhav6233m

Description

@vaibhav6233m
  • Version: b7f67f2
  • Platform: Linux x64
  • Subsystem: Ubuntu

Type: Bug

Severity: High

Description:

I want to use the libp2p functionality for building a p2p network where the nodes are sharing some contentID and other nodes can discover these nodes using the FindContentProvider functionality in DHT.

What actually happening is that the nodes are not getting connected to each other behind NAT and also From EC2 servers where the incoming traffic is disabled, but the ports of bootstrap node are open. I am getting the list of other nodes in the network (Some random nodes, because I did enable some libp2p bootstrap nodes for sometime and it must have cached these details inside the peerBook) but not the nodes I am creating manually.

Also after some amount of time I am getting these errors at random.

See SS:

screenshot from 2018-07-02 16-37-36

screenshot from 2018-07-02 16-38-07

screenshot from 2018-07-02 16-39-40

Steps to reproduce the error:

Clone, npm i and run the dht-contentrouting.js
dht-contentrouting.js

Bootstrap Node

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions