maidsafe-archive / crust

Reliable p2p network connections in Rust with NAT traversal. One of the most needed libraries for any server-less / decentralised projects
BSD 3-Clause "New" or "Revised" License
956 stars 126 forks source link

Connection attempt fails #1144

Closed pharazen closed 5 years ago

pharazen commented 5 years ago

After the latest commit I am able to successfully connect to myself on localhost. However when attempting to connect with another user we both simply get:

Received event ConnectFailure(PeerId {.........key data here........}) (not handled)

Is there some way to debug further? The only thing I know is it's a connect failure. I guess it's timing out?

pharazen commented 5 years ago

Let me be clear that we did follow (i think) the expected process:

1) User A and B both call prepare-connection-info and exchange the key 2) User A enters connect 0 {User B data} 3) User B enters connect 0 {User A data}

Then nothing happens for about 10 seconds, and it gives ConnectFailure (not handled)

pharazen commented 5 years ago

Still unable to debug this, any ideas?

S-Coyle commented 5 years ago

Hi @pharazen I'm just testing this now so I'll get back to you with my findings

S-Coyle commented 5 years ago

Progress update on where I've got to with this...

Note that I'm assuming you are behind a NAT, as I am.

S-Coyle commented 5 years ago

Update - apologies, I've had no bandwidth to get back to this as yet due to other work taking priority.

S-Coyle commented 5 years ago

Repository no longer under active development, replaced by https://github.com/maidsafe/quic-p2p