[Ethereum] Port 30304/udp? Or is it 30301/udp

nodesports

I'm drawing a blank on a simple thing. I remember that I need to have 30303 open on tcp and udp for the listening and discovery. And I seem to remember that you need 30304/udp open.

But I'm not finding anythink that confirms this.

Maybe it's 30301, and not 30304 that I have to open for udp?

Can someone remind me?

Best Answer

These ports need to be opened on your firewall:

-- Port 30303 (TCP and UDP)

-- Port 30304 (UDP)

"Peer discovery is UDP only. This means that on 30303 you are using both TCP (ETH and LES protocols) and UDP (old peer discovery for finding ETH peers), on 30304 only UDP is used." (source)

This page mentions 30301 as an example: "In the following example, the node URL describes a node with IP address 10.3.58.6, TCP listening port 30303 and UDP discovery port 30301."

30301 is used by the bootnode util as default UDP discovery port.

Related Topic