r/Kalilinux • u/Equivalent-Tip679 • 2d ago
Question - Kali General NetHunter KeX starts but immediately exits on Android 12 (Connection Refused)
Hi everyone. I've been trying to get Kali NetHunter Rootless working on my Android 12 phone for hours and I'm completely stuck.
The installation finishes without any errors and when I run `kex start` it says the TigerVNC server started on `localhost:1` (port 5901). But a few seconds later it exits by itself. `kex status` shows no active sessions and the terminal ends with:
X connection to :1 broken
The Xtigervnc server cleanly exited!
When I open the NetHunter KeX app it always says **Connection refused** on `localhost:5901`.
I've already made sure XFCE is installed, `startxfce4` exists, created the `~/.vnc/xstartup` file, fixed the DNS issue so `apt update` works, but nothing changed. I also noticed `apt upgrade` fails because of a `systemd` error about `/etc/machine-id`, although I'm not sure if that's related.
At this point I don't know if I missed something or if my NetHunter installation is broken. Has anyone seen this before or knows what could be causing the VNC server to exit immediately? Any help would be appreciated.
