# Ports required for PMM

**URL:** <https://forums.percona.com/t/ports-required-for-pmm/20281>\
**Category:** Database Monitoring and Management\
**Created:** [February 24, 2023, 9:54pm UTC](https://forums.percona.com/t/ports-required-for-pmm/20281 "2023-02-24T21:54:39Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![joe1](https://avatars.discourse-cdn.com/v4/letter/j/d26b3c/32.png) [@joe1](https://forums.percona.com/u/joe1)\
**Post date:** [February 24, 2023, 9:54pm UTC](https://forums.percona.com/t/ports-required-for-pmm/20281/1 "2023-02-24T21:54:39Z")

</div>

Regarding [Network - Percona Monitoring and Management](https://docs.percona.com/percona-monitoring-and-management/setting-up/server/network.html), specifically the 7771 and 8428 ports, are these are like at tunnel or websocket? What I trying to understand is whether both the agent and server both listen on ports 7771 and 8428 or does the PMM server contact the agent (which is listening on 7771) and once established data can move back and forth but the server itself is not listening on port 7771. If it is the latter, does the 8428 work in just the opposite direction?

---

<div class="post-metadata">

**Author:** ![Michael\_Coburn](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/michael_coburn/32/18_2.png) [@Michael\_Coburn](https://forums.percona.com/u/Michael_Coburn)\
**Post date:** [February 24, 2023, 10:10pm UTC](https://forums.percona.com/t/ports-required-for-pmm/20281/2 "2023-02-24T22:10:20Z")

</div>

Hi @joe1 welcome to the Percona forums!  
The default behaviour of `pmm-agent` is push based, meaning no listening ports are exposed on the local database server (the exporters are listening on localhost only). Push based also means that metrics are collected locally and then sent from `pmm-agent` to the PMM Server on encrypted port `443/tcp` by default.

---

<div class="post-metadata">

**Author:** ![joe1](https://avatars.discourse-cdn.com/v4/letter/j/d26b3c/32.png) [@joe1](https://forums.percona.com/u/joe1)\
**Post date:** [February 27, 2023, 1:18pm UTC](https://forums.percona.com/t/ports-required-for-pmm/20281/3 "2023-02-27T13:18:38Z")

</div>

Thank you. Does that mean that the ports 7771 and 8428 are not needed then?

---

<div class="post-metadata">

**Author:** ![Ivan\_Groenewold](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/ivan_groenewold/32/6299_2.png) [@Ivan\_Groenewold](https://forums.percona.com/u/Ivan_Groenewold)\
**Post date:** [March 1, 2023, 11:22am UTC](https://forums.percona.com/t/ports-required-for-pmm/20281/4 "2023-03-01T11:22:32Z")

</div>

Correct, those ports are not required. Only open 443 from pmm client → pmm server

---

<div class="post-metadata">

**Author:** ![Ivan\_Groenewold](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/ivan_groenewold/32/6299_2.png) [@Ivan\_Groenewold](https://forums.percona.com/u/Ivan_Groenewold)\
**Post date:** [March 3, 2023, 4:01pm UTC](https://forums.percona.com/t/ports-required-for-pmm/20281/5 "2023-03-03T16:01:09Z")

</div>


