We have a business requirement to set up a OPC UA Server that listen to port 443 on an Ubuntu box along with Apache. So we added a second network interface, configured Apache to use the first one, and set the OPC UA server to use listen to port 443 on the second NIC. For example,
The problem is that OPC Server ignores the IP address, or host name, and listens to 0.0.0.0:443. This conflicts with Apache.
The Start method in Stack\Opc.Ua.Core\Stack\Tcp\TcpTransportListener.cs does this when creating a socket:
IPEndPoint endpoint = new IPEndPoint(IPAddress.Any, port);
m_listeningSocket = new Socket(endpoint.AddressFamily, SocketType.Stream, ProtocolType.Tcp);
To Reproduce
Steps to reproduce the behavior:
Set up a OPC UA Server on Ubuntu
Change the BaseAddress in its Config.xml to a specific IP address
Start the server
From a terminal, run 'sudo netstat -tulpn | grep LISTEN'
The result shows the OPC UA server is listening to 0.0.0.0:443 and :::443
Expected behavior
The OPC UA server should listen on the specified IP, not IPAddress.Any.
Environment (please complete the following information):
OS: Ubuntu 20.04
Development environment: Visual Studio 2019 16.11.2
Type of Issue
Describe the Issue
We have a business requirement to set up a OPC UA Server that listen to port 443 on an Ubuntu box along with Apache. So we added a second network interface, configured Apache to use the first one, and set the OPC UA server to use listen to port 443 on the second NIC. For example,
The problem is that OPC Server ignores the IP address, or host name, and listens to 0.0.0.0:443. This conflicts with Apache. The Start method in Stack\Opc.Ua.Core\Stack\Tcp\TcpTransportListener.cs does this when creating a socket:
To Reproduce Steps to reproduce the behavior:
Expected behavior The OPC UA server should listen on the specified IP, not IPAddress.Any.
Environment (please complete the following information):