17:10, EEST
March 9, 2017
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
9:05, EEST
April 17, 2013
14:15, EEST
March 9, 2017
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
14:38, EEST
April 17, 2013
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.
13:16, EEST
March 9, 2017
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.
17:14, EEST
March 9, 2017
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
15:22, EEST
April 17, 2013
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.
Most Users Ever Online: 1919
Currently Online:
8 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: 738
Moderators: 7
Admins: 1
Forum Stats:
Groups: 3
Forums: 15
Topics: 1524
Posts: 6451
Newest Members:
rickyjuarez140, jonathonmcintyre, fannielima, kristiewinkle8, rust, christamcdowall, redaahern07571, nigelbdhmp, travistimmons, AnnelCibModerators: Jouni Aro: 1026, Pyry: 1, Petri: 0, Bjarne Boström: 1026, Jimmy Ni: 26, Matti Siponen: 346, Lusetti: 0
Administrators: admin: 1