I have one free ethernet adapter available on a PC. I need an application to use both, DataSocket (read and write) and OPC UA (probably server). Is that possible over the one ethernet connection set to a static IP?
I am posting this because I need the answer before I get the oportunity to test it.
Yes, of course. You can run many applications using Ethernet as long as they don't use the same TCP/UDP ports. As any OS already does.
The program/application already uses DataSocket. There, no port number is defined. I cannot see that you can do that.
With OPC UA I don't know (can't remember, nor check right now) whether you select the port number. I am referring to the NI OPC UA toolkit.
So, how can I take care about what you say?
The OPC UA (server) shall be added to the same application. The partners for the DataSocket comunication are several additional PCs. The OPC UA client will be aother unit. All just connected to a hub.
A port clash between widespread applications is very unlikely. Personally, I don't bother about this until I find troubles (never, so far). Usually there is a way to redefine ports, in any case.