# How can get more connected peers?

**URL:** <https://forum.cosmos.network/t/how-can-get-more-connected-peers/570>\
**Category:** Cosmos-SDK\
**Created:** [July 21, 2018, 12:59pm UTC](https://forum.cosmos.network/t/how-can-get-more-connected-peers/570 "2018-07-21T12:59:26Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ping](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.cosmos.network/ping/32/108_2.png) [@ping](https://forum.cosmos.network/u/ping)\
**Post date:** [July 21, 2018, 12:59pm UTC](https://forum.cosmos.network/t/how-can-get-more-connected-peers/570/1 "2018-07-21T12:59:26Z")

</div>

I get a very small number from 0 to 15 on n\_peers when i visit host:26657/net\_info

> {  
> “jsonrpc”: “2.0”,  
> “id”: “”,  
> “result”: {  
> “listening”: true,  
> “listeners”: [  
> “Listener(@47.254.216.102:26656)”  
> ],  
> “n\_peers”: “6”,  
> “peers”: [  
> XXXXXXXX  
> ]  
> }  
> }

the value of n\_peers is changed very often. so I guess the connection is closed soon after established.

I tried many cloud server in different country and I had the same problem.

Can anyone tell me how to optimize?

this is my config file:

> laddr = “tcp://172.20.113.226:26656”  
> external\_address = “47.254.29.36:26656”

---

<div class="post-metadata">

**Author:** ![4avka](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.cosmos.network/4avka/32/658_2.png) [@4avka](https://forum.cosmos.network/u/4avka)\
**Post date:** [May 30, 2019, 11:30am UTC](https://forum.cosmos.network/t/how-can-get-more-connected-peers/570/2 "2019-05-30T11:30:52Z")

</div>

I am quite new to Cosmos SDK stuff, but I previously (and ongoing) have worked on btcsuite/btcd and there is a parameter you can set in the configuration that regulates the target numbers and maximum numbers of peers.

I think it also depends in some part on the peers you connect to - if they have some limit set then you can’t connect to them while their threshold is met.

Also, something else, bear in mind that Tendermint uses epidemic transmission and these kinds of numbers are typical in epidemic protocols, it reduces the message work per node while achieving the same rate of propagation, and defends against partitioning by nodes shuffling their peers periodically and randomly.

---

<div class="post-metadata">

**Author:** ![ping](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.cosmos.network/ping/32/108_2.png) [@ping](https://forum.cosmos.network/u/ping)\
**Post date:** [May 30, 2019, 10:37pm UTC](https://forum.cosmos.network/t/how-can-get-more-connected-peers/570/3 "2019-05-30T22:37:24Z")

</div>

Thanks @4avka . I did not know how to it ten months ago, but I can do it very well after GOS.

and I think your understanding is right. thanks for sharing with us.
