05/31/2020
Hi,
I'm a beginner in this OPC UA. Can I ask a dumb question about this?
If I write an OPC UA Server and run it in a computer. Then I have a client (like a PLC or a OPC UA Client app in another computer). Do these computer need to be in the same network for connection?
If so, how to run the project while Server computer and Client computer are in differnt places?
05/30/2017
The server needs to have an address that is accessible to the client.
This is usually includes a DNS name that will allow the client to find a route to the server. i.e. it works just like typing a URL into a browser.
That said, if the server is not on the same network there are likely proxies and firewalls that need to configured to allow access. The steps required to allow access depend on the network infrastructure you are using.
05/31/2020
Randy Armstrong said
The server needs to have an address that is accessible to the client.This is usually includes a DNS name that will allow the client to find a route to the server. i.e. it works just like typing a URL into a browser.
That said, if the server is not on the same network there are likely proxies and firewalls that need to configured to allow access. The steps required to allow access depend on the network infrastructure you are using.
I download the UA-.NETStandard from Github. But when running Server, the Server Endpoint URLs is:
opc.tcp://mypc:51210/UA/SampleServer
How can I change that address for a Client access (from a different network)?
Or the sample just allow the connect from the same network?
05/30/2017
"mypc" is a DNS name. This is what is used when "localhost" appears in the configuration file.
Replace localhost with a name that can be accessed from a different network.
e.g. mypc.mycompany.com
How to do that depends on your IT environment and if you are a corporate setting you will need to discuss with your IT dept.
1 Guest(s)