1
I am learning and trying to implement my own cryptocurrency and I am thinking about how could I achieve the peer to peer connections.
I read that bitcoin is using DNS seeds for discovering users. In such case when running full node at home, one must configure his router to forward the port, firewall, etc..
What do you think about webRTC technology? Do you think this could be good way of solving p2p network? In this case, no router configuration is needed and firewall is ok.
Do you see some pros/cons of these aproaches?
What does port forwarding and firewalls have to do with DNS seeds? Those are two completely unrelated things. Even without DNS seeds you still need to port forward. – Andrew Chow – 2018-11-20T15:14:46.953
well i am trying to say, that's the way how are peers discovered in bitcoin. And if I want for example to be full node, i need configure firewall and router. Do I understand it correctly? – dtechlearn – 2018-11-20T15:17:14.310
No, you do not need to configure your router and firewall to run a full node. Contrary to popular belief, full nodes do not need to accept incoming connections. If you only make outbound connections, you are still helping the network because you are still receiving, verifying, and relaying blocks and transactions. – Andrew Chow – 2018-11-20T15:20:20.993
That's true, so I just implement connection from client(home) to public nodes? but what if all nodes are behind nat(homes) . Then I should configure it hm? – dtechlearn – 2018-11-20T15:24:43.423