Avatar

Please consider registering
guest

sp_LogInOut Log In sp_Registration Register

Register | Lost password?
Advanced Search

— Forum Scope —




— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

sp_Feed Topic RSS sp_TopicIcon
OpcUA Server within a Docker Container
February 7, 2017
11:20, EET
Avatar
kiesel
New Member
Members
Forum Posts: 2
Member Since:
February 7, 2017
sp_UserOfflineSmall Offline

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

February 7, 2017
13:46, EET
Avatar
Heikki Tahvanainen
Moderator
Members

Moderators
Forum Posts: 402
Member Since:
April 17, 2013
sp_UserOfflineSmall Offline

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.

February 9, 2017
12:15, EET
Avatar
kiesel
New Member
Members
Forum Posts: 2
Member Since:
February 7, 2017
sp_UserOfflineSmall Offline

Thank you very much, with your solution I was able to fix this issue!

Forum Timezone: Europe/Helsinki

Most Users Ever Online: 518

Currently Online:
4 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

hbrackel: 135

pramanj: 86

Francesco Zambon: 81

rocket science: 77

Ibrahim: 76

Sabari: 62

kapsl: 57

gjevremovic: 49

Xavier: 43

fred: 41

Member Stats:

Guest Posters: 0

Members: 682

Moderators: 16

Admins: 1

Forum Stats:

Groups: 3

Forums: 15

Topics: 1468

Posts: 6262

Newest Members:

joliecheney96, digitechroshni, LouieWreve, Kickbiche, karrimacvitie5, graciela2073, sagarchau, elviralangwell4, Donnavek

Moderators: Jouni Aro: 1010, Otso Palonen: 32, Tuomas Hiltunen: 5, Pyry: 1, Petri: 0, Bjarne Boström: 983, Heikki Tahvanainen: 402, Jukka Asikainen: 1, moldzh08: 0, Jimmy Ni: 26, Teppo Uimonen: 21, Markus Johansson: 42, Niklas Nurminen: 0, Matti Siponen: 322, Lusetti: 0, Ari-Pekka Soikkeli: 5

Administrators: admin: 1