ethereum / trin

An Ethereum portal client: a json-rpc server with nearly instant sync, and low CPU & storage usage
363 stars 111 forks source link

NAT traversal #596

Closed emhane closed 1 year ago

emhane commented 1 year ago

Optimised protocol based off https://github.com/ethereum/devp2p/issues/207 Relating to issue: https://github.com/ethereum/devp2p/issues/226

carver commented 1 year ago

Work happening here: https://github.com/emhane/discv5/commits/nat-hole-punch

emhane commented 1 year ago

Work happening here: https://github.com/emhane/discv5/commits/nat-hole-punch

Thanks Jason. Also here https://github.com/emhane/nat_hole_punch/tree/nat-hole-punch, and here for testing https://github.com/emhane/discv5-cli/tree/nat .

carver commented 1 year ago

When following the docs, I get this for the first server attempt:

error: Found argument 'query' which wasn't expected, or isn't valid in this context

I think it started up fine by just removing query. I haven't finished running the test, though.

carver commented 1 year ago

Hm, the second cli instance doesn't recognize -u, -i, or -r, so I sense that I'm doing something really wrong. I'm not seeing those options in cargo run -p discv5-cli -- server -h. I'm running commit aa52bbd2879c83257

emhane commented 1 year ago

But the latest commit at origin/nat is 8feb22ede3203e567bfcae4071f117c6eae472c0 ?

carver commented 1 year ago

yup, I'm a goof, that's why we post commit hashes! :P

carver commented 1 year ago

https://github.com/sigp/discv5/pull/134

KolbyML commented 1 year ago

After this is done we can look at closing this issue https://github.com/ethereum/trin/issues/22 since this would be the solution to it?

emhane commented 1 year ago

After this is done we can look at closing this issue #22 since this would be the solution to it?

That's right, both issues tackle the same general problem of how to include nodes behind NAT in the network.

github-actions[bot] commented 1 year ago

This issue is stale because it has been open for 42 days with no activity.

github-actions[bot] commented 1 year ago

This issue was closed because it has been inactive for 14 days since being marked as stale.