# pmm2.1 - pmm-agent listening two ports ?

**URL:** <https://forums.percona.com/t/pmm2-1-pmm-agent-listening-two-ports/7301>\
**Category:** PMM 2.x\
**Created:** [November 20, 2019, 12:26am UTC](https://forums.percona.com/t/pmm2-1-pmm-agent-listening-two-ports/7301 "2019-11-20T00:26:38Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![charismanom](https://avatars.discourse-cdn.com/v4/letter/c/4bbf92/32.png) [@charismanom](https://forums.percona.com/u/charismanom)\
**Post date:** [November 20, 2019, 12:26am UTC](https://forums.percona.com/t/pmm2-1-pmm-agent-listening-two-ports/7301/1 "2019-11-20T00:26:38Z")

</div>

I only completed the pmm-client installation with rpm and did not configure pmm-admin.

Why are there two ports listening on the pmm-agent?

/usr/local/percona/pmm2/config/pmm-agent.yaml

listen-port: 7777  
~~  
~~  
ports:  
min: 42000  
max: 42010

# netstat -lnpt |grep pmm-agent

tcp 0 0 127.0.0.1:7777 0.0.0.0:\* LISTEN 9786/pmm-agent  
tcp 0 0 127.0.0.1:[COLOR=#FF0000]35355 0.0.0.0:\* LISTEN 9786/pmm-agent

# service pmm-agent restart

# netstat -lnpt |grep pmm-agent

tcp 0 0 127.0.0.1:7777 0.0.0.0:\* LISTEN 9786/pmm-agent  
tcp 0 0 127.0.0.1:36951 0.0.0.0:\* LISTEN 9786/pmm-agent

What is this port changed in pmm-agent?

And is there a parameter to lock this port in the /usr/local/percona/pmm2/config/pmm-agent.yaml file?
