Need Server endpoint as IPADDRESS:port, not SERVERNAME:port

Unified Architecture topics related to OPC UA Specification, compliant behavior and any technical issues of OPC UA, like Security, Information Model, Companion Specs DI, PLCopen, ADI, ...

Moderator: Support Team

Post Reply
OPCUA_user
Jr. Member
Jr. Member
Posts: 1
Joined: 02 Oct 2020, 14:36

Need Server endpoint as IPADDRESS:port, not SERVERNAME:port

Post by OPCUA_user »

Does anybody know how to configure a server to publish its endpoint in the format opc.tcp://192.168.0.100:48030, and NOT in the format opc.tcp://myServerName:48030?

I have some clients who are having problems connecting to the second format above.

I'm using the .NET server SDK.

Thanks!

User avatar
Support Team
Hero Member
Hero Member
Posts: 3064
Joined: 18 Mar 2011, 15:09

Re: Need Server endpoint as IPADDRESS:port, not SERVERNAME:port

Post by Support Team »

Hello,
to publish an endpoint with an ip you have to change the BaseAddresses in your configuration (xml or InMemory) to this format.

in your app.config the line with the BaseAddress will should look like this.

Code: Select all

<BaseAddress>opc.tcp://192.168.1.65:48030</BaseAddress>
With this change you also have to renew your server certificate.

If your certificate will be generated by the sdk, just delete your old one. The sdk will generate a new one with the changed configuraiton.

If you create your own certificate check if it includes the ip address in its subject-alternative-name
Best regards
Unified Automation Support Team

Post Reply