PDA

View Full Version : Using a different machine/VNC client to connect to Kex



Nvyous
2019-11-27, 09:33
Is there a way to connect to Kex through vnc?

I've got Nethunter running on my Nexus 6p and it runs fine. I can access Kex through the local Kex Client just fine, but whenever I try to connect using a different device on the same network, i'll get a connection refused error.
The phone is pingable, so the connection is fine..
Kex server has "local host only" turned off.

Is there a way Kex is setup that prevents normal VNC clients from connecting? Are ports blocked? Am I just doing something completely wrong? Is this even possible?



Oh, and a work around I did find was connecting the phone through USB to my PC, and using "adb forward tcp:5901 tcp:5901". After that you can connect using any vnc client to localhost.

re4son
2019-11-28, 09:04
There certainly is and you did everything right but you've found a bug where the "localhost" flag is not evaluated properly. Thanks heaps for letting us know, we'll fix it straight away.
Kudos for your "adb forward..." - that's a great piece of hacker ingenuity.

You can allow connections from other hosts by editing "/etc/vnc.conf" and adding the following line:

$localhost = "no";

We'll let you know when the "localhost" checkbox is fixed so you can remove that line again.

Many thanks

Nvyous
2019-11-28, 09:34
You can allow connections from other hosts by editing "/etc/vnc.conf" and adding the following line:

$localhost = "no";

We'll let you know when the "localhost" checkbox is fixed so you can remove that line again.

Many thanks


Thanks for the heads up! adding the line in the /etc/vnc.conf fixed it :)

Nvyous
2019-11-28, 09:56
You can allow connections from other hosts by editing "/etc/vnc.conf" and adding the following line:

$localhost = "no";

We'll let you know when the "localhost" checkbox is fixed so you can remove that line again.

Many thanks

This worked perfectly. Thank you!

re4son
2019-11-28, 10:31
Fixed.
The new version of the nethunter-app is in the staging repository for testing.
You can add the repository in your store client:

Just go to "Settings" -> "Repositories" and click the "+" in the top right hand corner.
Add the repository address "https://staging.nethunter.com"
Go back to "Updates" and pull down from the top of the screen to refresh. You should now being offered the update. Just install it and the "localhost" checkbox should work now.

Please let us know how you go.

Nvyous
2019-11-28, 10:43
The updated version works perfectly. The Localhost toggle does what it's intended as far as I can tell. Having the toggle on restricts me to local connections, and toggeling it off allows external connections.

The only thing I noticed when the toggle Localhost is off, when starting the server it still gives a -localhost flag. Might just be a visual thing?

re4son
2019-11-28, 21:39
Glad it's working, thanks for letting us know.
We are now setting "-localhost yes" or "-localhost no" explicitly so you should see it every time.

Blackshadow101
2020-03-30, 18:51
I have an error for connecting to the kex server--------- beginning of main
03-30 21:47:54.020 30112 30112 I MainConfiguration: onStart called
03-30 21:47:54.038 30112 30112 I MainConfiguration: onResume called
03-30 21:47:54.039 30112 30112 I MainConfiguration: onResumeFragments called
03-30 21:47:54.039 30112 30112 I MainConfiguration: arriveOnPage called
03-30 21:47:54.192 30112 30157 I Adreno-EGL: <qeglDrvAPI_eglInitialize:379>: QUALCOMM Build: 05/22/18, 624c5bb, I109c45a694
03-30 21:47:54.192 30112 30157 I zygote : android::hardware::configstore::V1_0::ISurfaceFlin gerConfigs::hasWideColorDisplay retrieved: 0
03-30 21:47:54.192 30112 30157 I OpenGLRenderer: Initialized EGL, version 1.4
03-30 21:47:54.192 30112 30157 D OpenGLRenderer: Swap behavior 2
03-30 21:47:54.198 30112 30157 W Adreno-EGL: <qeglDrvAPI_eglGetConfigAttrib:612>: EGL_BAD_ATTRIBUTE
03-30 21:47:54.204 30112 30157 W Adreno-EGL: <qeglDrvAPI_eglGetConfigAttrib:612>: EGL_BAD_ATTRIBUTE
03-30 21:47:54.341 30112 30157 W Adreno-EGL: <qeglDrvAPI_eglGetConfigAttrib:612>: EGL_BAD_ATTRIBUTE
03-30 21:47:54.356 30112 30112 V View : dispatchProvideAutofillStructure(): not laid out, ignoring 2 children of 1073741857
03-30 21:47:54.356 30112 30112 V View : dispatchProvideAutofillStructure(): not laid out, ignoring 2 children of 1073741858
03-30 21:47:54.356 30112 30112 V View : dispatchProvideAutofillStructure(): not laid out, ignoring 2 children of 1073741859
03-30 21:47:54.356 30112 30112 V View : dispatchProvideAutofillStructure(): not laid out, ignoring 2 children of 1073741860
03-30 21:47:54.358 30112 30112 V View : dispatchProvideAutofillStructure(): not laid out, ignoring 11 children of 1073741863
03-30 21:47:54.358 30112 30112 V View : dispatchProvideAutofillStructure(): not laid out, ignoring 2 children of 1073741864
03-30 21:47:54.361 30112 30112 I AssistStructure: Flattened final assist data: 7468 bytes, containing 1 windows, 27 views
03-30 21:48:03.146 30112 30112 I MainConfiguration: onPause called
03-30 21:48:03.427 30112 30117 I zygote : Do partial code cache collection, code=63KB, data=60KB
03-30 21:48:03.443 30112 30117 I zygote : After code cache collection, code=63KB, data=60KB
03-30 21:48:03.443 30112 30117 I zygote : Increasing code cache capacity to 256KB
03-30 21:48:03.542 30112 30112 I RemoteCanvas: Initializing connection to: localhost, port: 1
03-30 21:48:03.550 30112 1835 I RemoteCanvas: Establishing VNC session to: localhost, port: 5901
03-30 21:48:03.550 30112 30112 I InputHandlerGeneric: displayDensity, baseSwipeDist, immersiveSwipeDistance: 1.5 15.0 15.0
03-30 21:48:03.552 30112 1835 V RfbProto: Connecting to server: localhost at port: 5901
03-30 21:48:03.560 30112 30112 I RemoteCanvasActivity: onResume called.
03-30 21:48:03.575 30112 1835 W System.err: java.net.ConnectException: failed to connect to localhost/127.0.0.1 (port 5901) from /:: (port 44299): connect failed: ECONNREFUSED (Connection refused)
03-30 21:48:03.590 30112 1835 W System.err: at libcore.io.IoBridge.connect(IoBridge.java:138)
03-30 21:48:03.590 30112 1835 W System.err: at java.net.PlainSocketImpl.socketConnect(PlainSocket Impl.java:129)
03-30 21:48:03.590 30112 1835 W System.err: at java.net.AbstractPlainSocketImpl.doConnect(Abstrac tPlainSocketImpl.java:365)
03-30 21:48:03.590 30112 1835 W System.err: at java.net.AbstractPlainSocketImpl.connectToAddress( AbstractPlainSocketImpl.java:209)
03-30 21:48:03.590 30112 1835 W System.err: at java.net.AbstractPlainSocketImpl.connect(AbstractP lainSocketImpl.java:191)
03-30 21:48:03.590 30112 1835 W System.err: at java.net.SocksSocketImpl.connect(SocksSocketImpl.j ava:357)
03-30 21:48:03.590 30112 1835 W System.err: at java.net.Socket.connect(Socket.java:616)
03-30 21:48:03.590 30112 1835 W System.err: at java.net.Socket.connect(Socket.java:565)
03-30 21:48:03.590 30112 1835 W System.err: at java.net.Socket.<init>(Socket.java:445)
03-30 21:48:03.590 30112 1835 W System.err: at java.net.Socket.<init>(Socket.java:217)
03-30 21:48:03.590 30112 1835 W System.err: at com.iiordanov.bVNC.RfbProto.initSocket(RfbProto.ja va:354)
03-30 21:48:03.591 30112 1835 W System.err: at com.iiordanov.bVNC.RfbProto.initializeAndAuthentic ate(RfbProto.java:401)
03-30 21:48:03.591 30112 1835 W System.err: at com.iiordanov.bVNC.RemoteCanvas.startVncConnection (RemoteCanvas.java:466)
03-30 21:48:03.591 30112 1835 W System.err: at com.iiordanov.bVNC.RemoteCanvas.access$200(RemoteC anvas.java:94)
03-30 21:48:03.591 30112 1835 W System.err: at com.iiordanov.bVNC.RemoteCanvas$2.run(RemoteCanvas .java:289)
03-30 21:48:03.600 30112 1835 W System.err: Caused by: android.system.ErrnoException: connect failed: ECONNREFUSED (Connection refused)
03-30 21:48:03.600 30112 1835 W System.err: at libcore.io.Linux.connect(Native Method)
03-30 21:48:03.600 30112 1835 W System.err: at libcore.io.BlockGuardOs.connect(BlockGuardOs.java: 126)
03-30 21:48:03.600 30112 1835 W System.err: at libcore.io.IoBridge.connectErrno(IoBridge.java:152 )
03-30 21:48:03.600 30112 1835 W System.err: at libcore.io.IoBridge.connect(IoBridge.java:130)
03-30 21:48:03.600 30112 1835 W System.err: ... 14 more
03-30 21:48:03.601 30112 1835 E RemoteCanvas: java.lang.Exception: Connection to VNC server failed with reason:
03-30 21:48:03.601 30112 1835 E RemoteCanvas: failed to connect to localhost/127.0.0.1 (port 5901) from /:: (port 44299): connect failed: ECONNREFUSED (Connection refused)
03-30 21:48:03.601 30112 1835 E RemoteCanvas: java.net.ConnectException: failed to connect to localhost/127.0.0.1 (port 5901) from /:: (port 44299): connect failed: ECONNREFUSED (Connection refused)
03-30 21:48:03.601 30112 1835 E RemoteCanvas: at libcore.io.IoBridge.connect(IoBridge.java:138)
03-30 21:48:03.601 30112 1835 E RemoteCanvas: at java.net.PlainSocketImpl.socketConnect(PlainSocket Impl.java:129)
03-30 21:48:03.601 30112 1835 E RemoteCanvas: at java.net.AbstractPlainSocketImpl.doConnect(Abstrac tPlainSocketImpl.java:365)
03-30 21:48:03.601 30112 1835 E RemoteCanvas: at java.net.AbstractPlainSocketImpl.connectToAddress( AbstractPlainSocketImpl.java:209)
03-30 21:48:03.601 30112 1835 E RemoteCanvas: at java.net.AbstractPlainSocketImpl.connect(AbstractP lainSocketImpl.java:191)
03-30 21:48:03.601 30112 1835 E RemoteCanvas: at java.net.SocksSocketImpl.connect(SocksSocketImpl.j ava:357)
03-30 21:48:03.601 30112 1835 E RemoteCanvas: at java.net.Socket.connect(Socket.java:616)
03-30 21:48:03.601 30112 1835 E RemoteCanvas: at java.net.Socket.connect(Socket.java:565)
03-30 21:48:03.601 30112 1835 E RemoteCanvas: at java.net.Socket.<init>(Socket.java:445)
03-30 21:48:03.601 30112 1835 E RemoteCanvas: at java.net.Socket.<init>(Socket.java:217)
03-30 21:48:03.601 30112 1835 E RemoteCanvas: at com.iiordanov.bVNC.RfbProto.initSocket(RfbProto.ja va:354)
03-30 21:48:03.601 30112 1835 E RemoteCanvas: at com.iiordanov.bVNC.RfbProto.initializeAndAuthentic ate(RfbProto.java:401)
03-30 21:48:03.601 30112 1835 E RemoteCanvas: at com.iiordanov.bVNC.RemoteCanvas.startVncConnection (RemoteCanvas.java:466)
03-30 21:48:03.601 30112 1835 E RemoteCanvas: at com.iiordanov.bVNC.RemoteCanvas.access$200(RemoteC anvas.java:94)
03-30 21:48:03.601 30112 1835 E RemoteCanvas: at com.iiordanov.bVNC.RemoteCanvas$2.run(RemoteCanvas .java:289)
03-30 21:48:03.601 30112 1835 E RemoteCanvas: Caused by: android.system.ErrnoException: connect failed: ECONNREFUSED (Connection refused)
03-30 21:48:03.601 30112 1835 E RemoteCanvas: at libcore.io.Linux.connect(Native Method)
03-30 21:48:03.601 30112 1835 E RemoteCanvas: at libcore.io.BlockGuardOs.connect(BlockGuardOs.java: 126)
03-30 21:48:03.601 30112 1835 E RemoteCanvas: at libcore.io.IoBridge.connectErrno(IoBridge.java:152 )
03-30 21:48:03.601 30112 1835 E RemoteCanvas: at libcore.io.IoBridge.connect(IoBridge.java:130)
03-30 21:48:03.601 30112 1835 E RemoteCanvas: ... 14 more
03-30 21:48:03.601 30112 1835 W System.err: java.lang.Exception: Connection to VNC server failed with reason:
03-30 21:48:03.601 30112 1835 W System.err: failed to connect to localhost/127.0.0.1 (port 5901) from /:: (port 44299): connect failed: ECONNREFUSED (Connection refused)
03-30 21:48:03.601 30112 1835 W System.err: java.net.ConnectException: failed to connect to localhost/127.0.0.1 (port 5901) from /:: (port 44299): connect failed: ECONNREFUSED (Connection refused)
03-30 21:48:03.601 30112 1835 W System.err: at libcore.io.IoBridge.connect(IoBridge.java:138)
03-30 21:48:03.601 30112 1835 W System.err: at java.net.PlainSocketImpl.socketConnect(PlainSocket Impl.java:129)
03-30 21:48:03.601 30112 1835 W System.err: at java.net.AbstractPlainSocketImpl.doConnect(Abstrac tPlainSocketImpl.java:365)
03-30 21:48:03.601 30112 1835 W System.err: at java.net.AbstractPlainSocketImpl.connectToAddress( AbstractPlainSocketImpl.java:209)
03-30 21:48:03.602 30112 1835 W System.err: at java.net.AbstractPlainSocketImpl.connect(AbstractP lainSocketImpl.java:191)
03-30 21:48:03.602 30112 1835 W System.err: at java.net.SocksSocketImpl.connect(SocksSocketImpl.j ava:357)
03-30 21:48:03.602 30112 1835 W System.err: at java.net.Socket.connect(Socket.java:616)
03-30 21:48:03.602 30112 1835 W System.err: at java.net.Socket.connect(Socket.java:565)
03-30 21:48:03.602 30112 1835 W System.err: at java.net.Socket.<init>(Socket.java:445)
03-30 21:48:03.602 30112 1835 W System.err: at java.net.Socket.<init>(Socket.java:217)
03-30 21:48:03.602 30112 1835 W System.err: at com.iiordanov.bVNC.RfbProto.initSocket(RfbProto.ja va:354)
03-30 21:48:03.602 30112 1835 W System.err: at com.iiordanov.bVNC.RfbProto.initializeAndAuthentic ate(RfbProto.java:401)
03-30 21:48:03.602 30112 1835 W System.err: at com.iiordanov.bVNC.RemoteCanvas.startVncConnection (RemoteCanvas.java:466)
03-30 21:48:03.602 30112 1835 W System.err: at com.iiordanov.bVNC.RemoteCanvas.access$200(RemoteC anvas.java:94)
03-30 21:48:03.602 30112 1835 W System.err: at com.iiordanov.bVNC.RemoteCanvas$2.run(RemoteCanvas .java:289)
03-30 21:48:03.602 30112 1835 W System.err: Caused by: android.system.ErrnoException: connect failed: ECONNREFUSED (Connection refused)
03-30 21:48:03.602 30112 1835 W System.err: at libcore.io.Linux.connect(Native Method)
03-30 21:48:03.602 30112 1835 W System.err: at libcore.io.BlockGuardOs.connect(BlockGuardOs.java: 126)
03-30 21:48:03.602 30112 1835 W System.err: at libcore.io.IoBridge.connectErrno(IoBridge.java:152 )
03-30 21:48:03.602 30112 1835 W System.err: at libcore.io.IoBridge.connect(IoBridge.java:130)
03-30 21:48:03.602 30112 1835 W System.err: ... 14 more
03-30 21:48:03.602 30112 1835 W System.err: at com.iiordanov.bVNC.RemoteCanvas.startVncConnection (RemoteCanvas.java:475)
03-30 21:48:03.602 30112 1835 W System.err: at com.iiordanov.bVNC.RemoteCanvas.access$200(RemoteC anvas.java:94)
03-30 21:48:03.602 30112 1835 W System.err: at com.iiordanov.bVNC.RemoteCanvas$2.run(RemoteCanvas .java:289)
03-30 21:48:03.602 30112 1835 V RfbProto: RFB socket closed
03-30 21:48:03.603 30112 1835 V RemoteCanvas: Cleaning up resources
03-30 21:48:03.637 30112 30157 W Adreno-EGL: <qeglDrvAPI_eglGetConfigAttrib:612>: EGL_BAD_ATTRIBUTE
03-30 21:48:03.684 30112 30157 W Adreno-EGL: <qeglDrvAPI_eglGetConfigAttrib:612>: EGL_BAD_ATTRIBUTE
03-30 21:48:03.843 30112 30157 W Adreno-EGL: <qeglDrvAPI_eglGetConfigAttrib:612>: EGL_BAD_ATTRIBUTE
03-30 21:48:04.041 30112 30157 W Adreno-EGL: <qeglDrvAPI_eglGetConfigAttrib:612>: EGL_BAD_ATTRIBUTE
03-30 21:48:04.090 30112 30112 D RemoteCanvas: onCreateInputConnection called
03-30 21:48:04.092 30112 30112 D RemoteCanvas: currentIme: com.google.android.inputmethod.latin/com.android.inputmethod.latin.LatinIME
03-30 21:48:04.283 30112 30112 I MainConfiguration: onStop called
03-30 21:48:32.858 30112 30112 I MainConfiguration: onStart called
03-30 21:48:32.859 30112 30112 I MainConfiguration: onResume called
03-30 21:48:32.860 30112 30112 I MainConfiguration: onResumeFragments called
03-30 21:48:32.861 30112 30112 I MainConfiguration: arriveOnPage called
03-30 21:48:32.963 30112 30157 W Adreno-EGL: <qeglDrvAPI_eglGetConfigAttrib:612>: EGL_BAD_ATTRIBUTE
03-30 21:48:33.065 30112 30157 W Adreno-EGL: <qeglDrvAPI_eglGetConfigAttrib:612>: EGL_BAD_ATTRIBUTE
03-30 21:48:33.125 30112 30112 V RfbProto: RFB socket closed
03-30 21:48:33.125 30112 30112 V RemoteCanvas: Cleaning up resources
-Plz help

Blackshadow101
2020-03-30, 18:53
Help me
--------- beginning of main
03-30 21:47:54.020 30112 30112 I MainConfiguration: onStart called
03-30 21:47:54.038 30112 30112 I MainConfiguration: onResume called
03-30 21:47:54.039 30112 30112 I MainConfiguration: onResumeFragments called
03-30 21:47:54.039 30112 30112 I MainConfiguration: arriveOnPage called
03-30 21:47:54.192 30112 30157 I Adreno-EGL: <qeglDrvAPI_eglInitialize:379>: QUALCOMM Build: 05/22/18, 624c5bb, I109c45a694
03-30 21:47:54.192 30112 30157 I zygote : android::hardware::configstore::V1_0::ISurfaceFlin gerConfigs::hasWideColorDisplay retrieved: 0
03-30 21:47:54.192 30112 30157 I OpenGLRenderer: Initialized EGL, version 1.4
03-30 21:47:54.192 30112 30157 D OpenGLRenderer: Swap behavior 2
03-30 21:47:54.198 30112 30157 W Adreno-EGL: <qeglDrvAPI_eglGetConfigAttrib:612>: EGL_BAD_ATTRIBUTE
03-30 21:47:54.204 30112 30157 W Adreno-EGL: <qeglDrvAPI_eglGetConfigAttrib:612>: EGL_BAD_ATTRIBUTE
03-30 21:47:54.341 30112 30157 W Adreno-EGL: <qeglDrvAPI_eglGetConfigAttrib:612>: EGL_BAD_ATTRIBUTE
03-30 21:47:54.356 30112 30112 V View : dispatchProvideAutofillStructure(): not laid out, ignoring 2 children of 1073741857
03-30 21:47:54.356 30112 30112 V View : dispatchProvideAutofillStructure(): not laid out, ignoring 2 children of 1073741858
03-30 21:47:54.356 30112 30112 V View : dispatchProvideAutofillStructure(): not laid out, ignoring 2 children of 1073741859
03-30 21:47:54.356 30112 30112 V View : dispatchProvideAutofillStructure(): not laid out, ignoring 2 children of 1073741860
03-30 21:47:54.358 30112 30112 V View : dispatchProvideAutofillStructure(): not laid out, ignoring 11 children of 1073741863
03-30 21:47:54.358 30112 30112 V View : dispatchProvideAutofillStructure(): not laid out, ignoring 2 children of 1073741864
03-30 21:47:54.361 30112 30112 I AssistStructure: Flattened final assist data: 7468 bytes, containing 1 windows, 27 views
03-30 21:48:03.146 30112 30112 I MainConfiguration: onPause called
03-30 21:48:03.427 30112 30117 I zygote : Do partial code cache collection, code=63KB, data=60KB
03-30 21:48:03.443 30112 30117 I zygote : After code cache collection, code=63KB, data=60KB
03-30 21:48:03.443 30112 30117 I zygote : Increasing code cache capacity to 256KB
03-30 21:48:03.542 30112 30112 I RemoteCanvas: Initializing connection to: localhost, port: 1
03-30 21:48:03.550 30112 1835 I RemoteCanvas: Establishing VNC session to: localhost, port: 5901
03-30 21:48:03.550 30112 30112 I InputHandlerGeneric: displayDensity, baseSwipeDist, immersiveSwipeDistance: 1.5 15.0 15.0
03-30 21:48:03.552 30112 1835 V RfbProto: Connecting to server: localhost at port: 5901
03-30 21:48:03.560 30112 30112 I RemoteCanvasActivity: onResume called.
03-30 21:48:03.575 30112 1835 W System.err: java.net.ConnectException: failed to connect to localhost/127.0.0.1 (port 5901) from /:: (port 44299): connect failed: ECONNREFUSED (Connection refused)
03-30 21:48:03.590 30112 1835 W System.err: at libcore.io.IoBridge.connect(IoBridge.java:138)
03-30 21:48:03.590 30112 1835 W System.err: at java.net.PlainSocketImpl.socketConnect(PlainSocket Impl.java:129)
03-30 21:48:03.590 30112 1835 W System.err: at java.net.AbstractPlainSocketImpl.doConnect(Abstrac tPlainSocketImpl.java:365)
03-30 21:48:03.590 30112 1835 W System.err: at java.net.AbstractPlainSocketImpl.connectToAddress( AbstractPlainSocketImpl.java:209)
03-30 21:48:03.590 30112 1835 W System.err: at java.net.AbstractPlainSocketImpl.connect(AbstractP lainSocketImpl.java:191)
03-30 21:48:03.590 30112 1835 W System.err: at java.net.SocksSocketImpl.connect(SocksSocketImpl.j ava:357)
03-30 21:48:03.590 30112 1835 W System.err: at java.net.Socket.connect(Socket.java:616)
03-30 21:48:03.590 30112 1835 W System.err: at java.net.Socket.connect(Socket.java:565)
03-30 21:48:03.590 30112 1835 W System.err: at java.net.Socket.<init>(Socket.java:445)
03-30 21:48:03.590 30112 1835 W System.err: at java.net.Socket.<init>(Socket.java:217)
03-30 21:48:03.590 30112 1835 W System.err: at com.iiordanov.bVNC.RfbProto.initSocket(RfbProto.ja va:354)
03-30 21:48:03.591 30112 1835 W System.err: at com.iiordanov.bVNC.RfbProto.initializeAndAuthentic ate(RfbProto.java:401)
03-30 21:48:03.591 30112 1835 W System.err: at com.iiordanov.bVNC.RemoteCanvas.startVncConnection (RemoteCanvas.java:466)
03-30 21:48:03.591 30112 1835 W System.err: at com.iiordanov.bVNC.RemoteCanvas.access$200(RemoteC anvas.java:94)
03-30 21:48:03.591 30112 1835 W System.err: at com.iiordanov.bVNC.RemoteCanvas$2.run(RemoteCanvas .java:289)
03-30 21:48:03.600 30112 1835 W System.err: Caused by: android.system.ErrnoException: connect failed: ECONNREFUSED (Connection refused)
03-30 21:48:03.600 30112 1835 W System.err: at libcore.io.Linux.connect(Native Method)
03-30 21:48:03.600 30112 1835 W System.err: at libcore.io.BlockGuardOs.connect(BlockGuardOs.java: 126)
03-30 21:48:03.600 30112 1835 W System.err: at libcore.io.IoBridge.connectErrno(IoBridge.java:152 )
03-30 21:48:03.600 30112 1835 W System.err: at libcore.io.IoBridge.connect(IoBridge.java:130)
03-30 21:48:03.600 30112 1835 W System.err: ... 14 more
03-30 21:48:03.601 30112 1835 E RemoteCanvas: java.lang.Exception: Connection to VNC server failed with reason:
03-30 21:48:03.601 30112 1835 E RemoteCanvas: failed to connect to localhost/127.0.0.1 (port 5901) from /:: (port 44299): connect failed: ECONNREFUSED (Connection refused)
03-30 21:48:03.601 30112 1835 E RemoteCanvas: java.net.ConnectException: failed to connect to localhost/127.0.0.1 (port 5901) from /:: (port 44299): connect failed: ECONNREFUSED (Connection refused)
03-30 21:48:03.601 30112 1835 E RemoteCanvas: at libcore.io.IoBridge.connect(IoBridge.java:138)
03-30 21:48:03.601 30112 1835 E RemoteCanvas: at java.net.PlainSocketImpl.socketConnect(PlainSocket Impl.java:129)
03-30 21:48:03.601 30112 1835 E RemoteCanvas: at java.net.AbstractPlainSocketImpl.doConnect(Abstrac tPlainSocketImpl.java:365)
03-30 21:48:03.601 30112 1835 E RemoteCanvas: at java.net.AbstractPlainSocketImpl.connectToAddress( AbstractPlainSocketImpl.java:209)
03-30 21:48:03.601 30112 1835 E RemoteCanvas: at java.net.AbstractPlainSocketImpl.connect(AbstractP lainSocketImpl.java:191)
03-30 21:48:03.601 30112 1835 E RemoteCanvas: at java.net.SocksSocketImpl.connect(SocksSocketImpl.j ava:357)
03-30 21:48:03.601 30112 1835 E RemoteCanvas: at java.net.Socket.connect(Socket.java:616)
03-30 21:48:03.601 30112 1835 E RemoteCanvas: at java.net.Socket.connect(Socket.java:565)
03-30 21:48:03.601 30112 1835 E RemoteCanvas: at java.net.Socket.<init>(Socket.java:445)
03-30 21:48:03.601 30112 1835 E RemoteCanvas: at java.net.Socket.<init>(Socket.java:217)
03-30 21:48:03.601 30112 1835 E RemoteCanvas: at com.iiordanov.bVNC.RfbProto.initSocket(RfbProto.ja va:354)
03-30 21:48:03.601 30112 1835 E RemoteCanvas: at com.iiordanov.bVNC.RfbProto.initializeAndAuthentic ate(RfbProto.java:401)
03-30 21:48:03.601 30112 1835 E RemoteCanvas: at com.iiordanov.bVNC.RemoteCanvas.startVncConnection (RemoteCanvas.java:466)
03-30 21:48:03.601 30112 1835 E RemoteCanvas: at com.iiordanov.bVNC.RemoteCanvas.access$200(RemoteC anvas.java:94)
03-30 21:48:03.601 30112 1835 E RemoteCanvas: at com.iiordanov.bVNC.RemoteCanvas$2.run(RemoteCanvas .java:289)
03-30 21:48:03.601 30112 1835 E RemoteCanvas: Caused by: android.system.ErrnoException: connect failed: ECONNREFUSED (Connection refused)
03-30 21:48:03.601 30112 1835 E RemoteCanvas: at libcore.io.Linux.connect(Native Method)
03-30 21:48:03.601 30112 1835 E RemoteCanvas: at libcore.io.BlockGuardOs.connect(BlockGuardOs.java: 126)
03-30 21:48:03.601 30112 1835 E RemoteCanvas: at libcore.io.IoBridge.connectErrno(IoBridge.java:152 )
03-30 21:48:03.601 30112 1835 E RemoteCanvas: at libcore.io.IoBridge.connect(IoBridge.java:130)
03-30 21:48:03.601 30112 1835 E RemoteCanvas: ... 14 more
03-30 21:48:03.601 30112 1835 W System.err: java.lang.Exception: Connection to VNC server failed with reason:
03-30 21:48:03.601 30112 1835 W System.err: failed to connect to localhost/127.0.0.1 (port 5901) from /:: (port 44299): connect failed: ECONNREFUSED (Connection refused)
03-30 21:48:03.601 30112 1835 W System.err: java.net.ConnectException: failed to connect to localhost/127.0.0.1 (port 5901) from /:: (port 44299): connect failed: ECONNREFUSED (Connection refused)
03-30 21:48:03.601 30112 1835 W System.err: at libcore.io.IoBridge.connect(IoBridge.java:138)
03-30 21:48:03.601 30112 1835 W System.err: at java.net.PlainSocketImpl.socketConnect(PlainSocket Impl.java:129)
03-30 21:48:03.601 30112 1835 W System.err: at java.net.AbstractPlainSocketImpl.doConnect(Abstrac tPlainSocketImpl.java:365)
03-30 21:48:03.601 30112 1835 W System.err: at java.net.AbstractPlainSocketImpl.connectToAddress( AbstractPlainSocketImpl.java:209)
03-30 21:48:03.602 30112 1835 W System.err: at java.net.AbstractPlainSocketImpl.connect(AbstractP lainSocketImpl.java:191)
03-30 21:48:03.602 30112 1835 W System.err: at java.net.SocksSocketImpl.connect(SocksSocketImpl.j ava:357)
03-30 21:48:03.602 30112 1835 W System.err: at java.net.Socket.connect(Socket.java:616)
03-30 21:48:03.602 30112 1835 W System.err: at java.net.Socket.connect(Socket.java:565)
03-30 21:48:03.602 30112 1835 W System.err: at java.net.Socket.<init>(Socket.java:445)
03-30 21:48:03.602 30112 1835 W System.err: at java.net.Socket.<init>(Socket.java:217)
03-30 21:48:03.602 30112 1835 W System.err: at com.iiordanov.bVNC.RfbProto.initSocket(RfbProto.ja va:354)
03-30 21:48:03.602 30112 1835 W System.err: at com.iiordanov.bVNC.RfbProto.initializeAndAuthentic ate(RfbProto.java:401)
03-30 21:48:03.602 30112 1835 W System.err: at com.iiordanov.bVNC.RemoteCanvas.startVncConnection (RemoteCanvas.java:466)
03-30 21:48:03.602 30112 1835 W System.err: at com.iiordanov.bVNC.RemoteCanvas.access$200(RemoteC anvas.java:94)
03-30 21:48:03.602 30112 1835 W System.err: at com.iiordanov.bVNC.RemoteCanvas$2.run(RemoteCanvas .java:289)
03-30 21:48:03.602 30112 1835 W System.err: Caused by: android.system.ErrnoException: connect failed: ECONNREFUSED (Connection refused)
03-30 21:48:03.602 30112 1835 W System.err: at libcore.io.Linux.connect(Native Method)
03-30 21:48:03.602 30112 1835 W System.err: at libcore.io.BlockGuardOs.connect(BlockGuardOs.java: 126)
03-30 21:48:03.602 30112 1835 W System.err: at libcore.io.IoBridge.connectErrno(IoBridge.java:152 )
03-30 21:48:03.602 30112 1835 W System.err: at libcore.io.IoBridge.connect(IoBridge.java:130)
03-30 21:48:03.602 30112 1835 W System.err: ... 14 more
03-30 21:48:03.602 30112 1835 W System.err: at com.iiordanov.bVNC.RemoteCanvas.startVncConnection (RemoteCanvas.java:475)
03-30 21:48:03.602 30112 1835 W System.err: at com.iiordanov.bVNC.RemoteCanvas.access$200(RemoteC anvas.java:94)
03-30 21:48:03.602 30112 1835 W System.err: at com.iiordanov.bVNC.RemoteCanvas$2.run(RemoteCanvas .java:289)
03-30 21:48:03.602 30112 1835 V RfbProto: RFB socket closed
03-30 21:48:03.603 30112 1835 V RemoteCanvas: Cleaning up resources
03-30 21:48:03.637 30112 30157 W Adreno-EGL: <qeglDrvAPI_eglGetConfigAttrib:612>: EGL_BAD_ATTRIBUTE
03-30 21:48:03.684 30112 30157 W Adreno-EGL: <qeglDrvAPI_eglGetConfigAttrib:612>: EGL_BAD_ATTRIBUTE
03-30 21:48:03.843 30112 30157 W Adreno-EGL: <qeglDrvAPI_eglGetConfigAttrib:612>: EGL_BAD_ATTRIBUTE
03-30 21:48:04.041 30112 30157 W Adreno-EGL: <qeglDrvAPI_eglGetConfigAttrib:612>: EGL_BAD_ATTRIBUTE
03-30 21:48:04.090 30112 30112 D RemoteCanvas: onCreateInputConnection called
03-30 21:48:04.092 30112 30112 D RemoteCanvas: currentIme: com.google.android.inputmethod.latin/com.android.inputmethod.latin.LatinIME
03-30 21:48:04.283 30112 30112 I MainConfiguration: onStop called
03-30 21:48:32.858 30112 30112 I MainConfiguration: onStart called
03-30 21:48:32.859 30112 30112 I MainConfiguration: onResume called
03-30 21:48:32.860 30112 30112 I MainConfiguration: onResumeFragments called
03-30 21:48:32.861 30112 30112 I MainConfiguration: arriveOnPage called
03-30 21:48:32.963 30112 30157 W Adreno-EGL: <qeglDrvAPI_eglGetConfigAttrib:612>: EGL_BAD_ATTRIBUTE
03-30 21:48:33.065 30112 30157 W Adreno-EGL: <qeglDrvAPI_eglGetConfigAttrib:612>: EGL_BAD_ATTRIBUTE
03-30 21:48:33.125 30112 30112 V RfbProto: RFB socket closed
03-30 21:48:33.125 30112 30112 V RemoteCanvas: Cleaning up resources
Any solution for this problem