Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Anyone.know how to fix #7

Open
Doesyoutoo opened this issue Jun 11, 2024 · 2 comments
Open

Anyone.know how to fix #7

Doesyoutoo opened this issue Jun 11, 2024 · 2 comments

Comments

@Doesyoutoo
Copy link

Doesyoutoo commented Jun 11, 2024

help please i have s23 ultra andtoid 13Screenshot_20240611_220042_NetHunter KeX.jpg

If u are using default kex and vncserver reinstall it by following repository readme instructions.

New Android versions have some sort of limitations to process in background that might be killing the process result in connection refused.

@aioont
Copy link
Owner

aioont commented Jun 11, 2024

Is any time u able to connect to screen ?

Or it's just disconnected quickly?

The error message you are encountering indicates that a connection to a VNC server on your local machine (127.0.0.1) is being refused. This typically means that the VNC server is either not running or not listening on the specified port (5901). Here are some steps to troubleshoot and resolve this issue:

Steps to Resolve the Connection Issue

  1. Check if the VNC Server is Running:

    • Ensure that the VNC server is installed and running on your machine. You can check this by running the following command in your terminal or command prompt:
      ps aux | grep vnc
    • If the VNC server is not running, start it using the appropriate command for your VNC server software. For example:
      vncserver :1
      The :1 indicates display 1, which typically corresponds to port 5901.
  2. Verify the Port Number:

    • Make sure you are connecting to the correct port. The default port for VNC is 5900 plus the display number. For display 1, this would be port 5901. You can check if the port is open and listening using:
      netstat -tuln | grep 5901
    • If the port is not listed, the VNC server may not be configured correctly or may not be running.
  3. Firewall Settings:

    • Ensure that your firewall is not blocking the connection to port 5901. You can temporarily disable the firewall to test the connection:
      sudo ufw disable
    • If the connection works after disabling the firewall, configure your firewall to allow traffic on port 5901:
      sudo ufw allow 5901
  4. Check VNC Server Configuration:

    • Verify the VNC server configuration file to ensure it is set up to listen on the correct port and interface. The configuration file is typically located in the home directory under .vnc:
      cat ~/.vnc/xstartup
  5. Log Files:

    • Check the VNC server log files for any error messages that might give you more information about why the connection is being refused. The log files are usually found in the .vnc directory:
      cat ~/.vnc/hostname:1.log
  6. Restart VNC Server:

    • Sometimes, simply restarting the VNC server can resolve connection issues:
      vncserver -kill :1
      vncserver :1

@aioont
Copy link
Owner

aioont commented Jun 11, 2024

help please i have s23 ultra andtoid 13Screenshot_20240611_220042_NetHunter KeX.jpg

If u are using default kex and vncserver reinstall it by following repository readme instructions.

New Android versions have some sort of limitations to process in background that might be killing the process result in connection refused.

Refer to fix background phantom process limitations using adb

https://kskroyal.com/how-to-install-kali-linux-nethunter-on-any-android-device-in-2023-without-root-new/

Google search query to fix

"Kali Linux nethunter problem in new Android versions phonix background process"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants