Comments (4)
additional info:
2021-12-16 01:26:31.064 [info] <0.1479.0>@libp2p_transport_tcp:handle_info:500 retrying stungun with peer "/p2p/116Sa97proLW3oTBwUKtR1k7yxABCCwE3dnxvDwqhkh7snbEu3z"
2021-12-16 01:26:31.242 [info] <0.1479.0>@libp2p_transport_tcp:handle_info:527 stungun detected NAT type symmetric
2021-12-16 01:26:31.247 [info] <0.1532.0>@libp2p_relay_server:init_relay:242 initiating relay with peer "/p2p/11x5kNN7RKFEfaqe7TRxXc5bGV2Mz8U4LLwXaHK7hNYA4UZTsXe"
peer book entry:
# ./bin/miner peer book /p2p/116Sa97proLW3oTBwUKtR1k7yxABCCwE3dnxvDwqhkh7snbEu3z
+--------------------------------------------------------+-------------------+------------+-----------+---------+------------+
| address | name |listen_addrs|connections| nat |last_updated|
+--------------------------------------------------------+-------------------+------------+-----------+---------+------------+
|/p2p/116Sa97proLW3oTBwUKtR1k7yxABCCwE3dnxvDwqhkh7snbEu3z|unique-tawny-oyster| 2 | 10 |symmetric| 872.894s |
+--------------------------------------------------------+-------------------+------------+-----------+---------+------------+
+----------------------------------------------------------------------------------------------------------------------------+
| listen_addrs (prioritized) |
+----------------------------------------------------------------------------------------------------------------------------+
| /ip4/31.208.250.61/tcp/44158 |
|/p2p/11pEL2CRTBPhSWoAMeNZn3XUTJ3YjxuXHDPnNvZBv2PKaw3YAfq/p2p-circuit/p2p/116Sa97proLW3oTBwUKtR1k7yxABCCwE3dnxvDwqhkh7snbEu3z|
+----------------------------------------------------------------------------------------------------------------------------+
perhaps don't stun relayed / nat symmetric devices?
perhaps stun multiple and if any detect standard ip4 no nat then that takes precedence and other reports ignored?
from erlang-libp2p.
bump, this issue is still present and one of the causes of issues hotspot owners are complaining about, should be an easy fix
from erlang-libp2p.
bump, this issue is still present and one of the causes of issues hotspot owners are complaining about, should be an easy fix
Want to supply a patch?
from erlang-libp2p.
Want to supply a patch?
I don't think I'm best placed to make adjustments here, however it looks to my untrained eye like if the list returned by libp2p_peer:connected_peers(MyPeer)
was filtered to only include peers with a tcp address and no relay address, that it may help the issue (unsure if it would resolve fully) ?
erlang-libp2p/src/libp2p_transport_tcp.erl
Line 495 in 451688b
Another approach may be to remove or not insert a relayer session if a valid tcp listen address is working?
from erlang-libp2p.
Related Issues (20)
- stungun reporting private ip address ranges HOT 2
- infinite loop, relay through self p2p addresses
- Hotspots going relayed into after 2021-09-03~ update multiple users HOT 33
- "listen_addrs" changes to a random IP address, gossiping wrong IP address to the Helium Network HOT 10
- Sensecap issues after firmware update 2021.09.03.0 HOT 24
- IPv6 Support HOT 9
- force sync with known "good" node? HOT 1
- peerbook random should not count stale peers against it's total check amount
- proliferation of empty listen address HOT 4
- No sending beacons HOT 1
- Miner can't connect to peers. not_found errors in logs. Results in hotspot not witnessing anything. HOT 22
- Validators connections linger for 6 hours after Consensus Group
- hotspot has a different listen address than the one listed in the Helium API
- listening address error
- Undefined Error in process: {badmatch,{error,eagain}
- Possibly skipping first peer when randomly selecting
- Fatal Validator Crash - `libp2p_peerbook:random` HOT 1
- Where should people ask technical questions about erlang-libp2p?
- Where to have technical discussions about erlang-libp2p? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from erlang-libp2p.