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
Configuring server to listen on any IP
February 14, 2014
22:17, EET
Avatar
Steve
Member
Members
Forum Posts: 6
Member Since:
February 8, 2014
sp_UserOfflineSmall Offline

Hello,
Is it possible to configure the Endpoints of the OPC UA server so that it will listen for connection on the given port at any IP address? It seems that it only binds to the specific IP addresses currently defined for the host, and we would like for it to work more like other apps (e.g. ssh) that listen on any IP (0.0.0.0). The netstat listing shows something like the following, where ssh is on port 22 and our server is on port 10025:

tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN –
tcp6 0 0 127.0.0.1:10025 :::* LISTEN 4027/java
tcp6 0 0 10.10.0.184:10025 :::* LISTEN 4027/java

We are running this on an ARM processor with ubuntu, and have the possibility of the network configuration changing after the server has started (e.g. could switch between wired and wireless LANs).

Thanks for your help.

February 18, 2014
14:32, EET
Avatar
Jouni Aro
Moderator
Moderators
Forum Posts: 1009
Member Since:
December 21, 2011
sp_UserOfflineSmall Offline

I am afraid it is not possible with the 1.4.x version, but will be possible with 2.0, which enables you to specify the BindAddresses for the server, e.g.:

Set<InetAddress> bindAddresses = new HashSet<InetAddress>();
bindAddresses.add(InetAddress.getByAddress(new byte[] { 0, 0, 0, 0 }));
server.setBindAddresses(bindAddresses);

2.0 is currently in beta, so I recommend you try it out.

February 26, 2014
23:11, EET
Avatar
Steve
Member
Members
Forum Posts: 6
Member Since:
February 8, 2014
sp_UserOfflineSmall Offline

Thanks for the response. Do you have an idea of when 2.0 will be a release version?

February 27, 2014
8:15, EET
Avatar
Jouni Aro
Moderator
Moderators
Forum Posts: 1009
Member Since:
December 21, 2011
sp_UserOfflineSmall Offline

We are working on new modelling features which will take some time to get finished, so there is no target date for the release yet. The communication features are solid in 2.0, but the SDK interfaces are subject to change a little bit.

Forum Timezone: Europe/Helsinki

Most Users Ever Online: 518

Currently Online:
17 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

hbrackel: 135

pramanj: 86

Francesco Zambon: 81

rocket science: 75

ibrahim: 75

Sabari: 62

kapsl: 57

gjevremovic: 49

Xavier: 43

fred: 41

Member Stats:

Guest Posters: 0

Members: 708

Moderators: 16

Admins: 1

Forum Stats:

Groups: 3

Forums: 15

Topics: 1465

Posts: 6252

Newest Members:

christi10l, ahamad1, Flores Frederick, ellenmoss, harriettscherer, shanonhumphreys, KupimotoblokfuB, tamhollander5, paulinafcf, bridgette18l

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

Administrators: admin: 1