<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to OPC UA multiple Endpoints</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/cb996a6864/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Engineering/thread/cb996a6864/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Engineering/thread/cb996a6864/</id><updated>2025-10-28T20:51:47.597000Z</updated><subtitle>Recent posts to OPC UA multiple Endpoints</subtitle><entry><title>OPC UA multiple Endpoints</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/cb996a6864/?limit=25#1c5f" rel="alternate"/><published>2025-10-28T20:51:47.597000Z</published><updated>2025-10-28T20:51:47.597000Z</updated><author><name>malte</name><uri>https://forge.codesys.com/u/malte/</uri></author><id>https://forge.codesys.com5c3981def813f9d6caa46b4982201caea0055686</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;My CODESYS OPC UA server provides endpoints using both the hostname and the IP address.&lt;br/&gt;
Connecting via the IP address works fine, but connecting via the hostname does not.&lt;/p&gt;
&lt;p&gt;The endpoint list shows both &lt;code&gt;opc.tcp://&amp;lt;hostname&amp;gt;:4840&lt;/code&gt; and &lt;code&gt;opc.tcp://&amp;lt;ip&amp;gt;:4840&lt;/code&gt;.&lt;br/&gt;
When using the hostname, the OPC UA client (UA Expert) fails to connect.&lt;br/&gt;
Using the IP address connects without issues.&lt;/p&gt;
&lt;p&gt;Main goal is to conect via Python but opcua-asyncio seems to prefer the hostname.&lt;/p&gt;
&lt;p&gt;How can I configure CODESYS or my system so that the OPC UA connection via hostname also works properly or disable it completly?&lt;/p&gt;
&lt;hr/&gt;
&lt;p&gt;Running Codesys for PFC200 sl 4.18.0.0&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>