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
OPC UA Simulation Server: Unable to discover error.
March 5, 2021
3:49, EET
Avatar
aravindj
Member
Members
Forum Posts: 4
Member Since:
March 2, 2021
sp_UserOfflineSmall Offline

Hi,

I have written a java program to test my connections to OPCUA server.

First, I used the endpoint
opcua:tcp://uademo.prosysopc.com:53530/OPCUA/SimulationServer?discovery=false
and it connects successfully.

Second, I used the endpoint
opcua:tcp://127.0.1.1:53530/OPCUA/SimulationServer?discovery=false
which is a local instance of the OPCUA simulation server, it gives me the below error.

Unable to discover URL:opc.tcp://127.0.1.1:53530/OPCUA/SimulationServer/discovery

Do I need to set any configuration in the local instance of simulation server software to make the discovery successful.
Kindly suggest.

Thanks. Smile

March 5, 2021
8:21, EET
Avatar
Matti Siponen
Moderator
Members

Moderators
Forum Posts: 321
Member Since:
February 11, 2020
sp_UserOfflineSmall Offline

Hello,

This might sound obvious and you might have already done this, but have you verified that your local Simulation Server binds itself to 127.0.1.1? You can check this in the Endpoints tab by setting Bind Addresses to Custom and then pressing Configure button to see which addresses the Server is binding itself to.

If Simulation Server does bind itself to 127.0.1.1, have you tried connecting to the local Simulation Server with another Client such Prosys OPC UA Browser?

Also, your URLs are a bit weird. You’re using “opcua:tcp” while the prefix in the specification is “opc.tcp”. I have not seen parameters like “discovery=false” being appended to the address before either. Are you using the Prosys OPC UA SDK for Java to develop your Client with some customized address handling or something else?

March 5, 2021
8:44, EET
Avatar
Bjarne Boström
Moderator
Moderators
Forum Posts: 983
Member Since:
April 3, 2012
sp_UserOfflineSmall Offline

Hi

Actually, that is sort of a known issue. We wont bind to 127.0.1.1, only to 127.0.0.1, technically this happens is the OS (Ubuntu seems to do this) for some reason binds the local hostname to 127.0.1.1 when one could sort of assume it would be 127.0.0.1. Thus please use 127.0.0.1, that should work, let us know if not.

Eventually we should instead be listening to 0.0.0.0 by default, that should catch connection attempts to 127.0.1.1, but basically otherwise it is impossible (as far as I know) to “bind to all local addresses”.

March 5, 2021
9:36, EET
Avatar
aravindj
Member
Members
Forum Posts: 4
Member Since:
March 2, 2021
sp_UserOfflineSmall Offline

Hi,

Thanks for your reply and Yes – I am using Ubuntu OS. The solution recommended above (bind to 127.0.0.1) fixed the issue. Thanks again. Smile.

July 26, 2021
22:22, EEST
Avatar
hutchesb
New Member
Members
Forum Posts: 1
Member Since:
July 26, 2021
sp_UserOfflineSmall Offline

Bjarne Boström said
Hi

Actually, that is sort of a known issue. We wont bind to 127.0.1.1, only to 127.0.0.1, technically this happens is the OS (Ubuntu seems to do this) for some reason binds the local hostname to 127.0.1.1 when one could sort of assume it would be 127.0.0.1. Thus please use 127.0.0.1, that should work, let us know if not.

Eventually we should instead be listening to 0.0.0.0 by default, that should catch connection attempts to 127.0.1.1, but basically otherwise it is impossible (as far as I know) to “bind to all local addresses”.  

You may not need to bind to all loopback addresses, however it would be helpful if it binds to the address that the hostname resolves to, for Ubuntu for whatever reason it is 127.0.1.1.

Forum Timezone: Europe/Helsinki

Most Users Ever Online: 518

Currently Online:
18 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: 681

Moderators: 16

Admins: 1

Forum Stats:

Groups: 3

Forums: 15

Topics: 1467

Posts: 6261

Newest Members:

graciela2073, sagarchau, elviralangwell4, Donnavek, Eddiefauth, DonaldPooma, fidelduke938316, Jan-Pfizer, DavidROunc, fen.pang@woodside.com

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: 321, Lusetti: 0, Ari-Pekka Soikkeli: 5

Administrators: admin: 1