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: 1026
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: 1026
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: 1919

Currently Online:
41 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: 726

Moderators: 7

Admins: 1

Forum Stats:

Groups: 3

Forums: 15

Topics: 1525

Posts: 6456

Newest Members:

forrestdilke5, ernestoportus31, martin123, rickie5305, shaylamaggard4, rickyjuarez140, jonathonmcintyre, fannielima, kristiewinkle8, rust

Moderators: Jouni Aro: 1026, Pyry: 1, Petri: 0, Bjarne Boström: 1028, Jimmy Ni: 26, Matti Siponen: 346, Lusetti: 0

Administrators: admin: 1