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
accessing the server Remotly
April 3, 2017
17:10, EET
Avatar
peterrob45
Member
Members
Forum Posts: 25
Member Since:
March 9, 2017
sp_UserOfflineSmall Offline

Hi,

As a beginner in OPC and its concepts, i have developed a basic concept where my client and simulation server are in same PC. Now i have installed my Server in different PC.
1)Will OPC UA simulation server will work for remote access?
2)i tried to connect with both opc.tcp and https to communicate, both In my client application and sampleconsoleclient.
3) both pc’s are in same Ethernet connection.

This is the following error

Exception in thread “main” com.prosysopc.ua.client.ConnectException: Failed to retrieve endpoints. The server is not available: opc.tcp:///DESKTOP-6FRQH0D:53530/OPCUA/SimulationServer ServiceResult=Bad_CommunicationError (0x80050000) “A low level communication error occurred.”
at com.prosysopc.ua.client.UaClient.discoverEndpoints(Unknown Source)
at com.prosysopc.ua.client.UaClient.discoverEndpoints(Unknown Source)
at com.prosysopc.ua.client.UaClient.getEndpoints(Unknown Source)
at com.prosysopc.ua.client.UaClient.w(Unknown Source)
at com.prosysopc.ua.client.UaClient.connect(Unknown Source)
at com.prosysopc.ua.samples.client.Historical_data.main(Historical_data.java:33)
Caused by: org.opcfoundation.ua.common.ServiceResultException: Bad_CommunicationError (code=0x80050000, description=”2147811328, /DESKTOP-6FRQH0D:”)
at org.opcfoundation.ua.transport.https.HttpsClientPendingRequest.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: java.net.UnknownHostException: /DESKTOP-6FRQH0D:
at java.net.InetAddress.getAllByName0(Unknown Source)
at java.net.InetAddress.getAllByName(Unknown Source)
at java.net.InetAddress.getAllByName(Unknown Source)
at org.apache.http.impl.conn.SystemDefaultDnsResolver.resolve(SystemDefaultDnsResolver.java:45)
at org.apache.http.impl.conn.DefaultClientConnectionOperator.resolveHostname(DefaultClientConnectionOperator.java:278)
at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:162)
at org.apache.http.impl.conn.ManagedClientConnectionImpl.open(ManagedClientConnectionImpl.java:294)
at org.apache.http.impl.client.DefaultRequestDirector.tryConnect(DefaultRequestDirector.java:643)
at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:479)
at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:906)
at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:827)
… 4 more

As for my understanding the error states that, client can’t get the server endpoint of my another pc, is there any alternative way for doing this?
I am looking for some help !!

Regards
Rob

April 4, 2017
9:05, EET
Avatar
Heikki Tahvanainen
Moderator
Members

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

Hello,

Thank you for a clear explanation. The most probable reason for the error is that the client machine is not able to resolve DNS name DESKTOP-6FRQH0D.

Please try the connection with an ip-address of the server machine.

April 4, 2017
14:15, EET
Avatar
peterrob45
Member
Members
Forum Posts: 25
Member Since:
March 9, 2017
sp_UserOfflineSmall Offline

Hi,
thanks Heikki, I will look into it!

Let me add some points, Can i use WiFi to connect to the simulation server which is in other PC.
if not, is there any other way for connecting my server using wireless communication?
It would be nice if i am able to use WiFi. looking for your help.

Correct me if i am wrong , for Ethernet connection

1) you want me to use the ip-address of the computer where server is installed in the my client program?
or
2) you want to connect the two PC, by exchanging ip’s of both?

Regards
Rob

April 4, 2017
14:38, EET
Avatar
Heikki Tahvanainen
Moderator
Members

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

Hi,

Yes you can use Wi-Fi 🙂 You can use any connection medium that you like.

It’s good to notice that the functionality here is not related to OPC UA. The “problem” is related to DNS settings of your environment.

If you try pinging the DNS name “DESKTOP-6FRQH0D” from your client, you will receive a similar error statement from the ping utility of your platform. The problem is that your client computer cannot know how to reach the host DESKTOP-6FRQH0D.

May 8, 2017
13:16, EET
Avatar
peterrob45
Member
Members
Forum Posts: 25
Member Since:
March 9, 2017
sp_UserOfflineSmall Offline

Hi Heikki,

The above method of connecting the server remotely is solved, now i am trying to test like this.
1) My UA client application and Simulation server in a different laptop.
2) This time its not connected to same Wi-FI/router, but both the laptops are connected to the internet.
3) consider both the laptops are in different location.

Is it possible to access my server directly? is there anything that I need to configure in my client to discover the server protocol globally so that we can access from anywhere!

Looking for your suggestion.

May 13, 2017
17:14, EET
Avatar
peterrob45
Member
Members
Forum Posts: 25
Member Since:
March 9, 2017
sp_UserOfflineSmall Offline

Hi,
Is it possible to connect UA server and Client to communicate with a different (Wi-Fi) network and access the data?
I actually tested UA client by giving the ip address of my server machine in the url localhost, it shows the same error server endpoints are not available.
I am looking for your reply,
Thanks

May 15, 2017
15:22, EET
Avatar
Heikki Tahvanainen
Moderator
Members

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

Hello,

Thank you for the questions. As before, it’s good to note that the functionality here is not related to OPC UA. This question is related to general TCP/IP networking.

You should start by making sure that you can reach the server host by pinging from the client host. Depending on your network configuration, this may include configuring suitable Network Address Translation (port forwarding).

If the server host can not be reached from the client computer, then no TCP connection (and no OPC UA session) can be established between the applications.

Forum Timezone: Europe/Helsinki

Most Users Ever Online: 267

Currently Online:
4 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

hbrackel: 91

pramanj: 86

ibrahim: 68

kapsl: 57

gjevremovic: 49

TimK: 41

Fransua33: 39

fred: 36

Rainer Versteeg: 32

peterrob45: 25

Member Stats:

Guest Posters: 0

Members: 918

Moderators: 12

Admins: 1

Forum Stats:

Groups: 3

Forums: 14

Topics: 913

Posts: 3829

Newest Members:

fcalvez, prasha173, simonk, c70015@gmail.com, carmelnle23, Vishwanath H, jonghwi kwon, sourabh_mishra, angel, sve

Moderators: Jouni Aro: 834, Otso Palonen: 32, Tuomas Hiltunen: 5, janimakela: 0, Pyry: 1, Terho: 0, Petri: 0, Bjarne Boström: 435, Heikki Tahvanainen: 402, Jukka Asikainen: 1, Teppo Uimonen: 16, Markus Johansson: 6

Administrators: admin: 0