Page 1 of 1

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

Posted: 12 Apr 2021, 21:48
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!

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

Posted: 13 Apr 2021, 13:42
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