digitalpetri / opc-ua-demo-server

OPC UA Demo Server for Eclipse Milo
81 stars 30 forks source link

Why are there multiple URLs? #6

Closed ashhassan100 closed 2 years ago

ashhassan100 commented 2 years ago

Hi. I downloaded one of the releases for the demo server and I ran the server on my mac. I noticed there are multiple URLs present in the terminal and I was wondering what each of them do. These are opc.tcp://localhost:62541, opc.tcp://localhost:62541/milo, opc.tcp://localhost:4840/UADiscovery. Some of them seem to connect and some don't. I was wondering what the difference is between these 3 URLs.

kevinherron commented 2 years ago

There's only two significant URLs that appear in the logs (excluding variations on hostnames):

The discovery endpoint has only discovery services available and can always be used without security. The session endpoint also offers discovery services but may require security depending on the configured security policies.

You probably saw opc.tcp://localhost:4840/UADiscovery in the config file, which is the endpoint URL of a discovery server to register with, if enabled.