<?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>topic Re: Data Gateway Direct Access Error - Dynamic port binding is not supported when binding to localhost in Connectivity &amp; Data Prep</title>
    <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Data-Gateway-Direct-Access-Error-Dynamic-port-binding-is-not/m-p/2536021#M15293</link>
    <description>&lt;P data-start="293" data-end="305"&gt;Hi Andrea,&lt;/P&gt;
&lt;P data-start="307" data-end="427"&gt;Thank you for your detailed response. I went through each of the points you mentioned and wanted to share my findings:&lt;/P&gt;
&lt;P data-start="429" data-end="783"&gt;&lt;STRONG data-start="429" data-end="449"&gt;1 – .NET version&lt;/STRONG&gt;&lt;BR data-start="449" data-end="452" /&gt;I tried installing only the .NET 6.0.x versions to ensure compatibility, but during the installation process the Qlik Data Gateway executable prompted me to install .NET 8.0.x anyway. Even after having both .NET 6.0.x and 8.0.x installed, the same &lt;EM data-start="700" data-end="764"&gt;“Dynamic port binding not supported when binding to localhost”&lt;/EM&gt; error persisted.&lt;/P&gt;
&lt;P data-start="785" data-end="1101"&gt;&lt;STRONG data-start="785" data-end="807"&gt;2 – Port conflicts&lt;/STRONG&gt;&lt;BR data-start="807" data-end="810" /&gt;There are no other services running on the Windows Server. These are completely clean OS installations (Windows Server 2019, 2022, and 2025), each deployed as a fresh EC2 instance in AWS specifically for this purpose. No other Qlik products or additional software are installed or running.&lt;/P&gt;
&lt;P data-start="1103" data-end="1276"&gt;&lt;STRONG data-start="1103" data-end="1133"&gt;3 – Dedicated installation&lt;/STRONG&gt;&lt;BR data-start="1133" data-end="1136" /&gt;As mentioned above, the installations were performed on dedicated Windows instances, not shared with any other Qlik component or database.&lt;/P&gt;
&lt;P data-start="1278" data-end="1426"&gt;&lt;STRONG data-start="1278" data-end="1306"&gt;4 – Time synchronization&lt;/STRONG&gt;&lt;BR data-start="1306" data-end="1309" /&gt;The Windows server time is synchronized and aligned with the Qlik Cloud tenant’s timezone, so no discrepancy there.&lt;/P&gt;
&lt;P data-start="1428" data-end="1615"&gt;&lt;STRONG data-start="1428" data-end="1457"&gt;5 – Network configuration&lt;/STRONG&gt;&lt;BR data-start="1457" data-end="1460" /&gt;The instance has &lt;STRONG data-start="1477" data-end="1509"&gt;all outbound traffic allowed&lt;/STRONG&gt; through a NAT gateway (no inbound ports open except RDP). Outbound HTTPS (port 443) is fully permitted.&lt;/P&gt;
&lt;P data-start="1617" data-end="1847"&gt;Based on these tests and configurations, it doesn’t seem that the issue is related to the environment setup.&lt;BR data-start="270" data-end="273" /&gt;I’m sharing this here in case others have come across a similar situation or have suggestions on what else to try. I’d really appreciate any additional insights or ideas.&lt;/P&gt;
&lt;P data-start="1849" data-end="1883"&gt;Best regards,&lt;/P&gt;</description>
    <pubDate>Wed, 12 Nov 2025 15:10:04 GMT</pubDate>
    <dc:creator>datapumaarg</dc:creator>
    <dc:date>2025-11-12T15:10:04Z</dc:date>
    <item>
      <title>Data Gateway Direct Access Error - Dynamic port binding is not supported when binding to localhost</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Data-Gateway-Direct-Access-Error-Dynamic-port-binding-is-not/m-p/2536010#M15291</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P data-start="313" data-end="334"&gt;Hello Comunnity,&lt;/P&gt;
&lt;P data-start="336" data-end="572"&gt;I followed all the installation instructions from the official documentation for &lt;STRONG data-start="417" data-end="454"&gt;Qlik Data Gateway – Direct Access&lt;/STRONG&gt;.&lt;BR data-start="455" data-end="458" /&gt;The installation process completes successfully, but when running the following command to configure the tenant:&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;CODE class="whitespace-pre! language-bash"&gt;connectoragent qsc set_config --tenant_url XXXXXXXX.us.qlikcloud.com&lt;/CODE&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P data-start="663" data-end="730"&gt;the service fails to start and returns the following error message:&lt;/P&gt;
&lt;P&gt;&lt;CODE class="whitespace-pre!"&gt;Dynamic port binding &lt;SPAN class="hljs-keyword"&gt;is&lt;/SPAN&gt; &lt;SPAN class="hljs-keyword"&gt;not&lt;/SPAN&gt; supported &lt;SPAN class="hljs-keyword"&gt;when&lt;/SPAN&gt; binding &lt;SPAN class="hljs-keyword"&gt;to&lt;/SPAN&gt; localhost. 
You must either bind &lt;SPAN class="hljs-keyword"&gt;to&lt;/SPAN&gt; &lt;SPAN class="hljs-number"&gt;127.0&lt;/SPAN&gt;&lt;SPAN class="hljs-number"&gt;.0&lt;/SPAN&gt;&lt;SPAN class="hljs-number"&gt;.1&lt;/SPAN&gt;:&lt;SPAN class="hljs-number"&gt;0&lt;/SPAN&gt; &lt;SPAN class="hljs-keyword"&gt;or&lt;/SPAN&gt; [::&lt;SPAN class="hljs-number"&gt;1&lt;/SPAN&gt;]:&lt;SPAN class="hljs-number"&gt;0&lt;/SPAN&gt;, &lt;SPAN class="hljs-keyword"&gt;or&lt;/SPAN&gt; &lt;SPAN class="hljs-keyword"&gt;both&lt;/SPAN&gt;.&lt;/CODE&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P data-start="864" data-end="968"&gt;I have tested this using a cleam SO&amp;nbsp;&lt;STRONG data-start="889" data-end="928"&gt;Windows Server 2025, 2022, and 2019&lt;/STRONG&gt;, (AWS Ec2 instances) and the issue occurs in all of them.&lt;/P&gt;
&lt;P data-start="970" data-end="1122"&gt;The environment includes the following &lt;STRONG data-start="1009" data-end="1026"&gt;.NET runtimes&lt;/STRONG&gt;, which are installed automatically with the latest Qlik Data Gateway (Direct Access) installer:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV class="contain-inline-size rounded-2xl relative bg-token-sidebar-surface-primary"&gt;
&lt;DIV class="sticky top-9"&gt;
&lt;DIV class="absolute end-0 bottom-0 flex h-9 items-center pe-2"&gt;
&lt;DIV class="bg-token-bg-elevated-secondary text-token-text-secondary flex items-center gap-4 rounded-sm px-2 font-sans text-xs"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;DIV class="overflow-y-auto p-4" dir="ltr"&gt;&lt;CODE class="whitespace-pre!"&gt;&lt;SPAN&gt;Microsoft&lt;SPAN class="hljs-selector-class"&gt;.AspNetCore&lt;/SPAN&gt;&lt;SPAN class="hljs-selector-class"&gt;.App&lt;/SPAN&gt; &lt;SPAN class="hljs-number"&gt;8.0&lt;/SPAN&gt;.&lt;SPAN class="hljs-number"&gt;21&lt;/SPAN&gt; &lt;SPAN class="hljs-selector-attr"&gt;[C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]&lt;/SPAN&gt;
Microsoft&lt;SPAN class="hljs-selector-class"&gt;.NETCore&lt;/SPAN&gt;&lt;SPAN class="hljs-selector-class"&gt;.App&lt;/SPAN&gt; &lt;SPAN class="hljs-number"&gt;8.0&lt;/SPAN&gt;.&lt;SPAN class="hljs-number"&gt;21&lt;/SPAN&gt; &lt;SPAN class="hljs-selector-attr"&gt;[C:\Program Files\dotnet\shared\Microsoft.NETCore.App]&lt;/SPAN&gt;
&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;
&lt;P data-start="1307" data-end="1465"&gt;Could you please confirm if this is a known issue or if any specific .NET version or configuration is required to support Kestrel on these Windows versions?&lt;/P&gt;
&lt;P data-start="1467" data-end="1493"&gt;Thank you for your help.&lt;/P&gt;
&lt;P data-start="1495" data-end="1526"&gt;Best regards,&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;This is the full error message:&lt;BR /&gt;&lt;BR /&gt;C:\Program Files\Qlik\ConnectorAgent\ConnectorAgent&amp;gt;connectoragent qsc set_config --tenant_url XXXXXXX.us.qlikcloud.com&lt;BR /&gt;connector-agent starting as standard .net core process....&lt;BR /&gt;{"TimeStamp":"12-11-2025 13:32:21.729","ProcessId":"3128","Thread":"1","Level":"INFO","PipeName":null,"Source":"QVX","ReloadId":"NA","TenantId":"NA","UserIdType":"NA","UserId":"NA","EngineSessionId":"NA","AppId":"NA","RequestGuid":"NA","Message":"environment-info: GatewayVersion=1.7.8, AgentVersion=1.31.2, ProcessorCount=2, WorkingSet=35 MB, OS=Microsoft Windows NT 10.0.17763.0, TimeZoneOffset=00:00 (0.0)","Exception":null}&lt;BR /&gt;{"TimeStamp":"12-11-2025 13:32:21.903","ProcessId":"3128","Thread":"1","Level":"INFO","PipeName":null,"Source":"QVX","ReloadId":"NA","TenantId":"NA","UserIdType":"NA","UserId":"NA","EngineSessionId":"NA","AppId":"NA","RequestGuid":"NA","Message":"Using default port from config 0","Exception":null}&lt;BR /&gt;{"TimeStamp":"12-11-2025 13:32:21.903","ProcessId":"3128","Thread":"1","Level":"INFO","PipeName":null,"Source":"QVX","ReloadId":"NA","TenantId":"NA","UserIdType":"NA","UserId":"NA","EngineSessionId":"NA","AppId":"NA","RequestGuid":"NA","Message":"Setting CONNECTOR_AGENT_PORT for non-default port","Exception":null}&lt;BR /&gt;{"TimeStamp":"12-11-2025 13:32:24.312","ProcessId":"3128","Thread":"1","Level":"INFO","PipeName":null,"Source":"QVX","ReloadId":"NA","TenantId":"NA","UserIdType":"NA","UserId":"NA","EngineSessionId":"NA","AppId":"NA","RequestGuid":"NA","Message":"Log options enabled: 'NONE'","Exception":null}&lt;BR /&gt;{"TimeStamp":"12-11-2025 13:32:24.317","ProcessId":"3128","Thread":"1","Level":"WARN","PipeName":null,"Source":"DAG","ReloadId":"NA","TenantId":"NA","UserIdType":"NA","UserId":"NA","EngineSessionId":"NA","AppId":"NA","RequestGuid":"NA","Message":"If AGENT_LOG_OPTIONS are configured, then at least one logging option must be enabled. All non-verbose logging options at the current AGENT_LOG_LEVEL will be enabled.","Exception":null}&lt;BR /&gt;{"TimeStamp":"12-11-2025 13:32:24.318","ProcessId":"3128","Thread":"1","Level":"INFO","PipeName":null,"Source":"DAG","ReloadId":"NA","TenantId":"NA","UserIdType":"NA","UserId":"NA","EngineSessionId":"NA","AppId":"NA","RequestGuid":"NA","Message":"Trace: RelayCommand enabled and will be output to DirectAccessAgent.log","Exception":null}&lt;BR /&gt;{"TimeStamp":"12-11-2025 13:32:24.319","ProcessId":"3128","Thread":"1","Level":"INFO","PipeName":null,"Source":"QVX","ReloadId":"NA","TenantId":"NA","UserIdType":"NA","UserId":"NA","EngineSessionId":"NA","AppId":"NA","RequestGuid":"NA","Message":"Chunks ack capability is not supported","Exception":null}&lt;BR /&gt;{"TimeStamp":"12-11-2025 13:32:24.71","ProcessId":"3128","Thread":"1","Level":"INFO","PipeName":null,"Source":"DAG","ReloadId":"NA","TenantId":"NA","UserIdType":"NA","UserId":"NA","EngineSessionId":"NA","AppId":"NA","RequestGuid":"NA","Message":"AsyncLoadDataRequest is disabled. Connector startup timeout set to 30 seconds per attempt with 3 max attempts","Exception":null}&lt;BR /&gt;{"TimeStamp":"12-11-2025 13:32:26.935","ProcessId":"3128","Thread":"1","Level":"ERROR","Message":"System.InvalidOperationException: Dynamic port binding is not supported when binding to localhost. You must either bind to 127.0.0.1:0 or [::1]:0, or both.\r\n at Microsoft.AspNetCore.Server.Kestrel.Core.LocalhostListenOptions..ctor(Int32 port)\r\n at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.AddressBinder.ParseAddress(String address, Boolean&amp;amp; https)\r\n at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.AddressBinder.AddressesStrategy.BindAsync(AddressBindContext context, CancellationToken cancellationToken)\r\n at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.AddressBinder.BindAsync(ListenOptions[] listenOptions, AddressBindContext context, Func`2 useHttps, CancellationToken cancellationToken)\r\n at Microsoft.AspNetCore.Server.Kestrel.Core.KestrelServerImpl.BindAsync(CancellationToken cancellationToken)\r\n at Microsoft.AspNetCore.Server.Kestrel.Core.KestrelServerImpl.StartAsync[TContext](IHttpApplication`1 application, CancellationToken cancellationToken)\r\n at Microsoft.AspNetCore.Hosting.WebHost.StartAsync(CancellationToken cancellationToken)\r\n at Microsoft.AspNetCore.Hosting.WebHostExtensions.RunAsync(IWebHost host, CancellationToken token, String startupMessage)\r\n at Microsoft.AspNetCore.Hosting.WebHostExtensions.RunAsync(IWebHost host, CancellationToken token, String startupMessage)\r\n at Microsoft.AspNetCore.Hosting.WebHostExtensions.RunAsync(IWebHost host, CancellationToken token)\r\n at Microsoft.AspNetCore.Hosting.WebHostExtensions.Run(IWebHost host)\r\n at Qlik.ConnectorAgent.AgentProcessBase.StartAgent(String[] args, Boolean isService)","Exception":null}&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Nov 2025 13:56:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Data-Gateway-Direct-Access-Error-Dynamic-port-binding-is-not/m-p/2536010#M15291</guid>
      <dc:creator>datapumaarg</dc:creator>
      <dc:date>2025-11-12T13:56:32Z</dc:date>
    </item>
    <item>
      <title>Re: Data Gateway Direct Access Error - Dynamic port binding is not supported when binding to localhost</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Data-Gateway-Direct-Access-Error-Dynamic-port-binding-is-not/m-p/2536020#M15292</link>
      <description>&lt;P&gt;As far as we know, the error "Dynamic port binding not supported" when configuring Qlik Data Gateway Direct Access on Windows Server 2019-2025 with .NET 8.0.21 could be due to a few potential causes:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;
&lt;P&gt;Unsupported .NET version: Qlik Data Gateway requires specific .NET versions. Make sure you have .NET 4.8, .NET 6.0.x (for versions prior to 1.6.8), and .NET 8.0.x installed. Installing versions higher than 8.0.x is not supported.&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;P&gt;Port conflicts: The gateway uses specific internal ports (e.g. 5050, 9027, 3005, 50260) for communication. Ensure these ports are not being used by other applications.&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;P&gt;Incorrect installation: The gateway should be installed on a dedicated Windows Server, not alongside other Qlik products or on the database server itself.&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;P&gt;Time synchronization issues: Ensure the Windows server time is aligned with the Qlik Cloud tenant's timezone to prevent disconnections.&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;P&gt;Firewall/network issues: Verify that outbound HTTPS (port 443) traffic to the tenant hostname is allowed.&lt;/P&gt;
&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;To resolve, try:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Verifying and correcting .NET installations&lt;/LI&gt;
&lt;LI&gt;Checking for port conflicts&lt;/LI&gt;
&lt;LI&gt;Performing a clean reinstall of the gateway&lt;/LI&gt;
&lt;LI&gt;Synchronizing server time&lt;/LI&gt;
&lt;LI&gt;Confirming firewall rules&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;Let me know if this helps&lt;/P&gt;</description>
      <pubDate>Wed, 12 Nov 2025 14:47:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Data-Gateway-Direct-Access-Error-Dynamic-port-binding-is-not/m-p/2536020#M15292</guid>
      <dc:creator>Andrea_Bertazzo</dc:creator>
      <dc:date>2025-11-12T14:47:03Z</dc:date>
    </item>
    <item>
      <title>Re: Data Gateway Direct Access Error - Dynamic port binding is not supported when binding to localhost</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Data-Gateway-Direct-Access-Error-Dynamic-port-binding-is-not/m-p/2536021#M15293</link>
      <description>&lt;P data-start="293" data-end="305"&gt;Hi Andrea,&lt;/P&gt;
&lt;P data-start="307" data-end="427"&gt;Thank you for your detailed response. I went through each of the points you mentioned and wanted to share my findings:&lt;/P&gt;
&lt;P data-start="429" data-end="783"&gt;&lt;STRONG data-start="429" data-end="449"&gt;1 – .NET version&lt;/STRONG&gt;&lt;BR data-start="449" data-end="452" /&gt;I tried installing only the .NET 6.0.x versions to ensure compatibility, but during the installation process the Qlik Data Gateway executable prompted me to install .NET 8.0.x anyway. Even after having both .NET 6.0.x and 8.0.x installed, the same &lt;EM data-start="700" data-end="764"&gt;“Dynamic port binding not supported when binding to localhost”&lt;/EM&gt; error persisted.&lt;/P&gt;
&lt;P data-start="785" data-end="1101"&gt;&lt;STRONG data-start="785" data-end="807"&gt;2 – Port conflicts&lt;/STRONG&gt;&lt;BR data-start="807" data-end="810" /&gt;There are no other services running on the Windows Server. These are completely clean OS installations (Windows Server 2019, 2022, and 2025), each deployed as a fresh EC2 instance in AWS specifically for this purpose. No other Qlik products or additional software are installed or running.&lt;/P&gt;
&lt;P data-start="1103" data-end="1276"&gt;&lt;STRONG data-start="1103" data-end="1133"&gt;3 – Dedicated installation&lt;/STRONG&gt;&lt;BR data-start="1133" data-end="1136" /&gt;As mentioned above, the installations were performed on dedicated Windows instances, not shared with any other Qlik component or database.&lt;/P&gt;
&lt;P data-start="1278" data-end="1426"&gt;&lt;STRONG data-start="1278" data-end="1306"&gt;4 – Time synchronization&lt;/STRONG&gt;&lt;BR data-start="1306" data-end="1309" /&gt;The Windows server time is synchronized and aligned with the Qlik Cloud tenant’s timezone, so no discrepancy there.&lt;/P&gt;
&lt;P data-start="1428" data-end="1615"&gt;&lt;STRONG data-start="1428" data-end="1457"&gt;5 – Network configuration&lt;/STRONG&gt;&lt;BR data-start="1457" data-end="1460" /&gt;The instance has &lt;STRONG data-start="1477" data-end="1509"&gt;all outbound traffic allowed&lt;/STRONG&gt; through a NAT gateway (no inbound ports open except RDP). Outbound HTTPS (port 443) is fully permitted.&lt;/P&gt;
&lt;P data-start="1617" data-end="1847"&gt;Based on these tests and configurations, it doesn’t seem that the issue is related to the environment setup.&lt;BR data-start="270" data-end="273" /&gt;I’m sharing this here in case others have come across a similar situation or have suggestions on what else to try. I’d really appreciate any additional insights or ideas.&lt;/P&gt;
&lt;P data-start="1849" data-end="1883"&gt;Best regards,&lt;/P&gt;</description>
      <pubDate>Wed, 12 Nov 2025 15:10:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Data-Gateway-Direct-Access-Error-Dynamic-port-binding-is-not/m-p/2536021#M15293</guid>
      <dc:creator>datapumaarg</dc:creator>
      <dc:date>2025-11-12T15:10:04Z</dc:date>
    </item>
  </channel>
</rss>

