Results 1 to 2 of 2

Thread: Need help connecting to VPN inside NetHunter Rootless (Termux)

  1. #1
    Join Date
    2022-Oct
    Posts
    14

    Need help connecting to VPN inside NetHunter Rootless (Termux)

    Installed Termux on my Samsung Galaxy S10.
    Then NetHunter Rootless.
    Then start it from Termux with "nethunter kex". The log is this:
    Code:
    ~ $ nethunter kex
    vncserver: No matching VNC server running for this user!
    vncserver: No matching VNC server running for this user!
    
    
    NetHunter KeX server sessions:
    
    X DISPLAY #     RFB PORT #      RFB UNIX PATH  PROCESS ID #     SERVER
    1               5901                           14166            Xtigervnc
    
    You can use the KeX client to connect to any of these displays.
    Then I open the app NetHunter KeX with those settings and get the error:



    Code:
    Error!
    
    Connection failed.
    
    
    Connection to VNC server failed with reason:
    failed to connect to localhost/127.0.0.1 (port
    5901) from /:: (port 60998): connect failed:
    ECONNREFUSED (Connection refused)
    java.net.ConnectException: failed to connect to
    localhost/127.0.0.1 (port 5901) from /:: (port
    60998): connect failed: ECONNREFUSED
    (Connection refused) at
    libcore.io.loBridge.connect(loBridge.java:188) at
    java.net.PlainSocketImpl.socketConnect(PlainSoc
    ketImpl.java:142) at
    java.net.AbstractPlainSocketlmpl.doConnect(Abst
    ractPlainSocketlmpl.java:390) at
    java.net.AbstractPlainSocketImpl.connectToAddr
    ess(AbstractPlainSocketImpl.java:230) at
    java.net.AbstractPlainSocketlmpl.connect(Abstra
    ctPlainSocketlmpl.java:212) at
    java.net.SocksSocketImpl.connect(SocksSocketl
    mpl.java:436) at
    java.net.Socket.connect(Socket.java:621) at
    java.net.Socket.connect(Socket.java:570) at
    java.net.Socket.(Socket.java:450) at
    java.net.Socket.(Socket.java:218) at
    com.iiordanov.bVNC.RfbProto.initSocket(RfbProto
    Jjava:354) at
    com.iiordanov.bVNC.RfbProto.initializeAndAuthen
    ticate(RfbProto.java:401) at
    com.iiordanov.bVNC.RemoteCanvas.startVncCon
    nection(RemoteCanvas.java:466) at
    com.iiordanov.bVNC.RemoteCanvas.access$200(
    RemoteCanvas.java:94) at
    com.iiordanov.bVNC.RemoteCanvas$2.run(Remot
    eCanvas.java:289) Caused by:
    android.system.ErrnoException: connect failed:
    ECONNREFUSED (Connection refused) at
    libcore.io.Linux.connect(Native Method) at
    libcore.io.ForwardingOs.connect(ForwardingOs.ja
    va:204) at
    libcore.io.BlockGuardOs.connect(BlockGuardOs.ja
    va:157) at
    libcore.io.ForwardingOs.connect(ForwardingOs.ja
    va:204) at
    libcore.io.loBridge.connectErrno(loBridge.java:20
    2) at
    libcore.io.loBridge.connect(loBridge.java:180) ...
    14 more
    
    
    ACKNOWLEDGED
    Any help to fix this?

  2. #2
    Join Date
    2022-Oct
    Posts
    14
    For some reason some software was missing so didn't work. Fixed it running this script (after cloning the tweakandtools package with git inside Kali):
    https://github.com/yadavvivek654/twe...ols-kex-repair

    Very useful software.

Similar Threads

  1. Replies: 0
    Last Post: 2023-06-18, 14:04
  2. VNC Server on Termux Kali rootless method
    By elvist in forum General Archive
    Replies: 1
    Last Post: 2022-09-02, 23:28
  3. Galaxy a12 rootless NH termux img.tar.gz corrupt?
    By BdSM444 in forum NetHunter General Questions
    Replies: 0
    Last Post: 2022-05-10, 02:02
  4. Kali nethunter rootless download img file from termux CORRUPT
    By BdSM444 in forum NetHunter General Questions
    Replies: 0
    Last Post: 2022-05-08, 05:04
  5. Nethunter (rootless) kex crashes termux
    By nh-newb in forum Installing NetHunter
    Replies: 0
    Last Post: 2021-01-31, 15:45

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •