Skip to main content

OPC Server Certificate Constraints

If the OPC UA server does not contain or contains an incorrect or otherwise unusable IP address, the machine name can be used in its place when establishing the connections. However, if the machine name cannot be associated with a specific IP address, then administrator edits to the HOSTS file on the client machine may be necessary.

The HOSTS file can be found in C:\Windows\System32\drivers\etc. Right-click it and open it in Notepad.

Add an entry similar to the one in the red box below, where 111.111.1.11 is the IP address of the remote machine and Remote Machine is the name of that machine that appears in the OPC UA Server certificate.

image9.png

If the file cannot be saved in this directory, save it to the Documents folder and then copy and overwrite the HOSTS file currently in this directory.