Hot answers tagged

3

You need to use the flags --rpc and --rpcaddr to bind the IP address upon execution of geth. For example, if you wanted to bind 30303 which is the default port to 10.0.2.18, use --rpcaddr 10.0.2.18 When you run geth this is verified in the console with a message saying something like "Http connection established: http://your.ip." If you need to change ...


2

The Ethereum Foundation runs bootnodes and the clients have the enode URIs hardcoded into the clients. These nodes are used for initial discovery and are generally disconnected from once someone has enough nodes. You can read more about the general wire protocol, called DEVp2p here.


2

There is also a rust enr-cli library to assist with decoding ENR strings. You can install it via cargo install enr-cli --version 0.1.0-alpha An example of its use is: $ enr-cli -e -Iu4QGuiaVXBEoi4kcLbsoPYX7GTK9ExOODTuqYBp9CyHN_PSDtnLMCIL91ydxUDRPZ-jem-...


1

Both the fork version and the fork digest are part of the eth2 field included in every node's ENR. To extract it, you can use the ENR Viewer or any other ENR decoding tool. This screenshot shows the ENR for a node on the Spadina test network: The eth2 field contains the following: 0x09fb0a1200000002ffffffffffffffff The first four bytes are the fork digest ...


1

You can use the enr library (written in rust). use enr::Enr; fn main() { let enr_string = "-Iu4QGuiaVXBEoi4kcLbsoPYX7GTK9ExOODTuqYBp9CyHN_PSDtnLMCIL91ydxUDRPZ-jem-o0WotK6JoZjPQWhTfEsTgmlkgnY0gmlwhDbOLfeJc2VjcDI1NmsxoQLVqNEoCVTC74VmUx25USyFe7lL0TgpXHaCX9CDy9H6boN0Y3CCIyiDdWRwgiMo"; let enr: Enr = enr_string.parse().unwrap(); println!( "...


1

It performs this lookup with its own address as target address only when the table is empty.


1

Geth attempts to connect to 25 peers by default, as stated on the CLI commands page. This can be changed with: --maxpeers value Maximum number of network peers (network disabled if set to 0) (default: 25)


1

I did not find anything in the official documentation (and also in the geth source code) that suggests, that changing the default port will make other peers refuse to connect to some other peers. The reason is probably due to many factors. Here, I report the ones I individuated: There are not enough peers, e.g. in Ropsten, as reported in this github issue ...


1

P2P filesharing networks work by enabling lots of computers on the Internet to share files with each other. Most of the P2P networks today use the BitTorrent protocol. BitTorrent has some superficial similarities to cryptocurrencies like bitcoin: namely, it is a protocol offering decentralised communications among autonomous nodes in a network. There are ...


1

Although there are many p2p networking implementation but libp2p and ÐΞVp2p are the most popular ones. libp2p is used in IFPS where as ÐΞVp2p is used in Ethereum. Both are well maintained and upto date p2p networking library and supports sub protocols to be developed on top of them. Both have supported features like NAT traversal, encrypted streams, ...


Only top voted, non community-wiki answers of a minimum length are eligible