

11:20, EET

February 7, 2017

Dear Sir or Madam,
I’m trying to run a OpcUA Server within a Docker Container.
The internal address is “opc.tcp://172.17.0.2:52520”.
As I want to connect to the container from outside the docker network I have to bind a docker-host port to the container.
Which results in a connection to 192.168.99.100:32782 (docker-host) which is forwarded to 172.17.0.2:52520 (docker-container)
If I try to connect to this address I get a “BadTcpEndpointUrlInvalid” error.
Could you help me to solve this problem?
Kind regards,
Markus Kiesel
13:46, EET

April 17, 2013

Hello,
The problem here comes from the fact that the server runs on port 52520 and the client is connecting to port 32782.
The best solution is to use the same port in both the host and the container.
In addition to being the best solution, this is actually the only solution at the moment. This is a known limitation in the OPC Foundation’s OPC UA Java stack (https://github.com/OPCFoundation/UA-Java/issues/16) which will hopefully be worked out in the future.
Most Users Ever Online: 1919
Currently Online:
38 Guest(s)
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Heikki Tahvanainen: 402
hbrackel: 144
rocket science: 88
pramanj: 86
Francesco Zambon: 83
Ibrahim: 78
Sabari: 62
kapsl: 57
gjevremovic: 49
Xavier: 43
Member Stats:
Guest Posters: 0
Members: 800
Moderators: 7
Admins: 1
Forum Stats:
Groups: 3
Forums: 15
Topics: 1539
Posts: 6496
Newest Members:
jerrywarkentin7, rebekahfortner3, Stevennox, qfpalfie08, brittny89u, LinwoodBup, isabellabeeton2, ladonnacdv, DarwinVew, betseymitford95Moderators: Jouni Aro: 1028, Pyry: 1, Petri: 0, Bjarne Boström: 1037, Jimmy Ni: 26, Matti Siponen: 353, Lusetti: 0
Administrators: admin: 1