<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>article Allow Required Ports When Dynatrace OneAgent Is Blocking Them in Troubleshooting</title>
    <link>https://community.dynatrace.com/t5/Troubleshooting/Allow-Required-Ports-When-Dynatrace-OneAgent-Is-Blocking-Them/ta-p/197527</link>
    <description>&lt;DIV class="lia-message-template-content-zone"&gt;
&lt;P&gt;&lt;EM&gt;Summary:&amp;nbsp;This article describes how to address scenarios where OneAgent network protection blocks a port. It outlines configuration changes and exemptions that allow the application to use the required port safely.&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;OneAgent consists of multiple processes that communicate with a watchdog via a TCP port. At startup, OneAgent watchdog attempts to open the first available port between ports 50000 and 50100. In some cases, you may need this port for your own applications that are started after OneAgent. In such cases, you can change the port range that the OneAgent watchdog uses by calling the OneAgent command-line interface.&lt;/P&gt;
&lt;P&gt;You can change the watchdog listening port by using&lt;/P&gt;
&lt;PRE&gt;set-watchdog-portrange&lt;/PRE&gt;
&lt;P&gt;via&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A class="" title="Learn how to perform some OneAgent configuration tasks without the need to reinstall OneAgent." href="https://www.dynatrace.com/support/help/setup-and-configuration/dynatrace-oneagent/oneagent-configuration-via-command-line-interface" target="_blank" rel="noopener"&gt;oneagentctl command-line tool&lt;/A&gt;:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;For example, to change port range to&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;50005:50105, go to the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A class="" title="Learn how to perform some OneAgent configuration tasks without the need to reinstall OneAgent." href="https://www.dynatrace.com/support/help/setup-and-configuration/dynatrace-oneagent/oneagent-configuration-via-command-line-interface" target="_blank" rel="noopener"&gt;oneagentctl directory&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;and run the following command:
&lt;UL&gt;
&lt;LI&gt;On&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;Linux&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;or&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;AIX&lt;/STRONG&gt;:
&lt;PRE&gt;./oneagentctl --set-watchdog-portrange 50005:50105&lt;/PRE&gt;
&lt;/LI&gt;
&lt;LI&gt;On&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;Windows&lt;/STRONG&gt;:
&lt;PRE&gt;.\oneagentctl.exe --set-watchdog-portrange 50005:50105&lt;/PRE&gt;
Restart OneAgent service to apply changes.&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;See&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A class="" title="Know which ports are used for inbound and outbound communications in your environment." href="https://www.dynatrace.com/support/help/setup-and-configuration/dynatrace-managed/installation/which-network-ports-does-dynatrace-server-use" target="_blank" rel="noopener"&gt;Which network ports does Dynatrace Server use?&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;for information on the ports used by Dynatrace.&lt;/P&gt;
&lt;H3&gt;OneAgent version 1.183 and earlier&lt;/H3&gt;
&lt;P&gt;Change the port range that the OneAgent watchdog uses by modifying the file&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;watchdoguserconfig.conf&lt;/STRONG&gt;.&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;The file&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;watchdoguserconfig.conf&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;is located in&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;/var/lib/dynatrace/oneagent/agent/config&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;on &lt;STRONG&gt;Linux AIX&lt;/STRONG&gt; and&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;%PROGRAMDATA%\dynatrace\oneagent\agent\config&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;on &lt;STRONG&gt;Windows&lt;/STRONG&gt;.&lt;/LI&gt;
&lt;LI&gt;You can change the watchdog listening port by modifying the following line in the file:
&lt;UL&gt;
&lt;LI&gt;From, for example:&lt;BR /&gt;
&lt;PRE&gt;&lt;SPAN&gt;-portrange=50000:50100&lt;BR /&gt;&lt;/SPAN&gt;&lt;/PRE&gt;
To:&lt;BR /&gt;
&lt;PRE&gt;&lt;SPAN&gt;-portrange=50005:50105&lt;/SPAN&gt;&lt;/PRE&gt;
&lt;/LI&gt;
&lt;LI&gt;Restart OneAgent service to apply changes.&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;/UL&gt;
&lt;/DIV&gt;</description>
    <pubDate>Fri, 23 Jan 2026 10:37:24 GMT</pubDate>
    <dc:creator>adham_sabry</dc:creator>
    <dc:date>2026-01-23T10:37:24Z</dc:date>
    <item>
      <title>Allow Required Ports When Dynatrace OneAgent Is Blocking Them</title>
      <link>https://community.dynatrace.com/t5/Troubleshooting/Allow-Required-Ports-When-Dynatrace-OneAgent-Is-Blocking-Them/ta-p/197527</link>
      <description>&lt;DIV class="lia-message-template-content-zone"&gt;
&lt;P&gt;&lt;EM&gt;Summary:&amp;nbsp;This article describes how to address scenarios where OneAgent network protection blocks a port. It outlines configuration changes and exemptions that allow the application to use the required port safely.&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;OneAgent consists of multiple processes that communicate with a watchdog via a TCP port. At startup, OneAgent watchdog attempts to open the first available port between ports 50000 and 50100. In some cases, you may need this port for your own applications that are started after OneAgent. In such cases, you can change the port range that the OneAgent watchdog uses by calling the OneAgent command-line interface.&lt;/P&gt;
&lt;P&gt;You can change the watchdog listening port by using&lt;/P&gt;
&lt;PRE&gt;set-watchdog-portrange&lt;/PRE&gt;
&lt;P&gt;via&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A class="" title="Learn how to perform some OneAgent configuration tasks without the need to reinstall OneAgent." href="https://www.dynatrace.com/support/help/setup-and-configuration/dynatrace-oneagent/oneagent-configuration-via-command-line-interface" target="_blank" rel="noopener"&gt;oneagentctl command-line tool&lt;/A&gt;:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;For example, to change port range to&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;50005:50105, go to the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A class="" title="Learn how to perform some OneAgent configuration tasks without the need to reinstall OneAgent." href="https://www.dynatrace.com/support/help/setup-and-configuration/dynatrace-oneagent/oneagent-configuration-via-command-line-interface" target="_blank" rel="noopener"&gt;oneagentctl directory&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;and run the following command:
&lt;UL&gt;
&lt;LI&gt;On&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;Linux&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;or&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;AIX&lt;/STRONG&gt;:
&lt;PRE&gt;./oneagentctl --set-watchdog-portrange 50005:50105&lt;/PRE&gt;
&lt;/LI&gt;
&lt;LI&gt;On&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;Windows&lt;/STRONG&gt;:
&lt;PRE&gt;.\oneagentctl.exe --set-watchdog-portrange 50005:50105&lt;/PRE&gt;
Restart OneAgent service to apply changes.&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;See&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A class="" title="Know which ports are used for inbound and outbound communications in your environment." href="https://www.dynatrace.com/support/help/setup-and-configuration/dynatrace-managed/installation/which-network-ports-does-dynatrace-server-use" target="_blank" rel="noopener"&gt;Which network ports does Dynatrace Server use?&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;for information on the ports used by Dynatrace.&lt;/P&gt;
&lt;H3&gt;OneAgent version 1.183 and earlier&lt;/H3&gt;
&lt;P&gt;Change the port range that the OneAgent watchdog uses by modifying the file&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;watchdoguserconfig.conf&lt;/STRONG&gt;.&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;The file&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;watchdoguserconfig.conf&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;is located in&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;/var/lib/dynatrace/oneagent/agent/config&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;on &lt;STRONG&gt;Linux AIX&lt;/STRONG&gt; and&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;%PROGRAMDATA%\dynatrace\oneagent\agent\config&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;on &lt;STRONG&gt;Windows&lt;/STRONG&gt;.&lt;/LI&gt;
&lt;LI&gt;You can change the watchdog listening port by modifying the following line in the file:
&lt;UL&gt;
&lt;LI&gt;From, for example:&lt;BR /&gt;
&lt;PRE&gt;&lt;SPAN&gt;-portrange=50000:50100&lt;BR /&gt;&lt;/SPAN&gt;&lt;/PRE&gt;
To:&lt;BR /&gt;
&lt;PRE&gt;&lt;SPAN&gt;-portrange=50005:50105&lt;/SPAN&gt;&lt;/PRE&gt;
&lt;/LI&gt;
&lt;LI&gt;Restart OneAgent service to apply changes.&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;/UL&gt;
&lt;/DIV&gt;</description>
      <pubDate>Fri, 23 Jan 2026 10:37:24 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Troubleshooting/Allow-Required-Ports-When-Dynatrace-OneAgent-Is-Blocking-Them/ta-p/197527</guid>
      <dc:creator>adham_sabry</dc:creator>
      <dc:date>2026-01-23T10:37:24Z</dc:date>
    </item>
    <item>
      <title>Re: What can I do when OneAgent blocks a port I need?</title>
      <link>https://community.dynatrace.com/t5/Troubleshooting/Allow-Required-Ports-When-Dynatrace-OneAgent-Is-Blocking-Them/tac-p/197598#M10</link>
      <description>&lt;P&gt;Managing the watchdog port range is easy, but when it comes to the other OneAgent processes like &lt;STRONG&gt;oneagentos&lt;/STRONG&gt;, things get more tricky. Some discussion on that topic can be found here:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.dynatrace.com/t5/Dynatrace-product-ideas/RFE-OneAgent-Ability-to-change-default-ports-numbers-for-all/idi-p/166628" target="_blank"&gt;https://community.dynatrace.com/t5/Dynatrace-product-ideas/RFE-OneAgent-Ability-to-change-default-ports-numbers-for-all/idi-p/166628&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Nov 2022 11:43:10 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Troubleshooting/Allow-Required-Ports-When-Dynatrace-OneAgent-Is-Blocking-Them/tac-p/197598#M10</guid>
      <dc:creator>kalle_lahtinen</dc:creator>
      <dc:date>2022-11-02T11:43:10Z</dc:date>
    </item>
  </channel>
</rss>

