How to increase the number of peers connected to node?

I don’t know very well the linux command lines, but I finnaly find a way to run a Grin node.

However the node can only connect to 8 peers. I am wondering if there is a way to increase the number of peers to connect. Someone told me I could port forward to port 3414. But I tried several solutions and sadly no one worked.

Anyone have idea how to increase the peers connected to the node?

BTW, the system is Debian 10.

Thank you in advance!

2 Likes

Increase peer_min_preferred_outbound_count in your grin-server.toml config file. To get inbound connections, you’ll have to configure your router to forward port 3414 to your computer’s internal IP address (probably something like 192.168.x.x or 10.x.x.x). Google/duckduckgo your router model number and “port forwarding” and you should be able to find a guide

2 Likes

Appreciate your prompt reply, David!

I will try more. :slight_smile:

you don’t gain anything by using more peers and generally hurt the network by doing so, especially if you don’t allow incoming connections.

Thank you for your answer. I think it’s better for me not to make any changes before I learn more.
:slight_smile: