Giter VIP home page Giter VIP logo

Comments (2)

aioont avatar aioont commented on July 28, 2024 1

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

from kex.

aioont avatar aioont commented on July 28, 2024 1

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"

from kex.

Related Issues (8)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.