10:16, EEST
September 11, 2019
Hi ..
I am trying to communicate with OPC UA sever though android client.
I created server and one client application with the help of following link : https://github.com/lucazanrosso/OPCUAClient/blob/master/OPCUAClient%20guide.pdf
Server is running in the windows(windows 10) desktop.
First i ran my application android emulator, that time i could able to connect the server and read /write the data.
Next same application i ran in my android device and tested that time i am getting connection exception.
com.prosysopc.ua.client.ConnectException: Failed to retrieve endpoints. The server is not available: opc.tcp://BLSL00926.ties.com:53530/opcserver ServiceResult=Bad_ConnectionRejected (0x80AC0000) “Could not establish a network connection to remote server.”
Both sever and client are connected to same network (same router).
Can any one provide your inputs…
Thanks in advance!!
13:08, EEST
April 3, 2012
Hi,
The error message means the connection cannot be made, i.e. nothing replies on the other side. You will need to check that network works between the 2, i.e. firewalls, port forwarding on the router etc.
Based on the exception message I would assume you are using our Java SDK, but the linked Github repo uses the raw stack level. So I sort of would need more explanation how that has anything to do with this.
10:18, EEST
September 11, 2019
Hi ,
Thanks for the reply!!
now i am getting different exception i just changed tcp url DSN name with server device IP address once it’s connected and worked. next agin i tried in different system. now i am getting the following error.
org.opcfoundation.ua.common.ServiceResultException: Bad_ConnectionRejected (code=0x80AC0000, description=”2158755840, socket failed: EACCES (Permission denied)”)
can you please help me on this .
11:59, EEST
April 3, 2012
Please note that this is not a general programming help forum, i.e. we do not generally cover basic java or android programming.
As this is not related to this application but for the SDK (sort of, but generally this is basic android programming question), better place would be in https://forum.prosysopc.com/forum/opc-ua-java-sdk/.
The error has something to do with android permissions, see e.g. https://stackoverflow.com/questions/11273197/error-message-java-net-socketexception-socket-failed-eacces-permission-denie or https://stackoverflow.com/questions/27687808/android-java-net-socketexceptionsocket-failed-eacces-permission-denied
Most Users Ever Online: 1919
Currently Online:
16 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: 1529
Posts: 6471
Newest Members:
gabriellabachus, Deakin, KTP25Zof, Wojciech Kubala, efrennowell431, wilfredostuart, caitlynfajardo, jeromechubb7, franciscagrimwad, adult_galleryModerators: Jouni Aro: 1026, Pyry: 1, Petri: 0, Bjarne Boström: 1032, Jimmy Ni: 26, Matti Siponen: 349, Lusetti: 0
Administrators: admin: 1