# Pmm client exporters change listen address how?

**URL:** <https://forums.percona.com/t/pmm-client-exporters-change-listen-address-how/18899>\
**Category:** PMM 2.x\
**Tags:** closed-no-reply\
**Created:** [December 2, 2022, 3:56pm UTC](https://forums.percona.com/t/pmm-client-exporters-change-listen-address-how/18899 "2022-12-02T15:56:36Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ivanbekyarov](https://avatars.discourse-cdn.com/v4/letter/i/2acd7d/32.png) [@ivanbekyarov](https://forums.percona.com/u/ivanbekyarov)\
**Post date:** [December 2, 2022, 3:56pm UTC](https://forums.percona.com/t/pmm-client-exporters-change-listen-address-how/18899/1 "2022-12-02T15:56:36Z")

</div>

Hi guys,

I can’t find in the documentation, what is the best way to change default listen address of the agents.

tcp 0 0 127.0.0.1:42000 0.0.0.0:\* LISTEN 1820237/vmagent  
tcp 0 0 0.0.0.0:4567 0.0.0.0:\* LISTEN 1812706/mysqld  
tcp 0 0 127.0.0.1:38653 0.0.0.0:\* LISTEN 1818668/pmm-agent  
tcp 0 0 127.0.0.1:7777 0.0.0.0:\* LISTEN 1818668/pmm-agent  
tcp6 0 0 :::33060 :::\* LISTEN 1812706/mysqld  
tcp6 0 0 :::3306 :::\* LISTEN 1812706/mysqld  
tcp6 0 0 :::42001 :::\* LISTEN 1818964/node\_export  
tcp6 0 0 :::42002 :::\* LISTEN 1820232/mysqld\_expo

I would like to change the listen address of ports 42001 and 42002 to be 127.0.0.1 .  
For example:  
tcp6 0 0 127.0.0.1:42001 0.0.0.0:\* LISTEN 1818964/node\_export  
tcp6 0 0 127.0.0.1:42002 0.0.0.0:\* LISTEN 1820232/mysqld\_expo

I don’t want the node\_exporter and mysql\_exporter to listen on any external interfaces for security reasons. Is that possible ?

Didn’t find any options in /usr/local/percona/pmm2/config/pmm-agent.yaml .

Also, this didn’t work for me:

/usr/sbin/pmm-agent --config=/usr/local/percona/pmm2/config/pmm-agent.yaml --id=/agent\_id/nodexporterid --listen-address=127.0.0.1 --listen-port=42001

Please advice 🙂

---

<div class="post-metadata">

**Author:** ![ravi5358](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/ravi5358/32/17822_2.png) [@ravi5358](https://forums.percona.com/u/ravi5358)\
**Post date:** [August 28, 2024, 2:53pm UTC](https://forums.percona.com/t/pmm-client-exporters-change-listen-address-how/18899/2 "2024-08-28T14:53:04Z")

</div>

Hi,

I am also facing same issue, can you please share the steps to changing local host to server IP.
