How OPC UA work?|OPC UA Standard|Forum|OPC Foundation

Avatar
Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
Lost password?
sp_Feed sp_PrintTopic sp_TopicIcon
How OPC UA work?
Avatar
Nilson Chalie
Member
Members
Forum Posts: 5
Member Since:
05/31/2020
sp_UserOfflineSmall Offline
1
05/31/2020 - 03:49
sp_Permalink sp_Print

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?

Avatar
Randy Armstrong
Admin
Forum Posts: 1579
Member Since:
05/30/2017
sp_UserOfflineSmall Offline
2
05/31/2020 - 05:14
sp_Permalink sp_Print

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.

Avatar
Nilson Chalie
Member
Members
Forum Posts: 5
Member Since:
05/31/2020
sp_UserOfflineSmall Offline
3
05/31/2020 - 08:24
sp_Permalink sp_Print

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?

Avatar
Randy Armstrong
Admin
Forum Posts: 1579
Member Since:
05/30/2017
sp_UserOfflineSmall Offline
4
05/31/2020 - 16:53
sp_Permalink sp_Print sp_EditHistory

“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.

Forum Timezone: America/Phoenix
Most Users Ever Online: 510
Currently Online:
Guest(s) 37
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Forum Stats:
Groups: 2
Forums: 10
Topics: 1445
Posts: 4889