unable to connect socket: connection refused(10061)
-1
votes
3
answers
6458
views
I am trying to run
kex --win -s
in kali linux in order to get the GUI but I am getting an error message:
Error: unable to connect socket: connection refused(10061)
Can you help
I have tried the following:
Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux
dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart
dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart
wsl --set-default-version 2
wsl --set-version kali-linux 2
sudo apt install -y kali-win-kex
kex --win -s
Start the vncserver to accept connection from all network address:
vncserver -localhost no
Check the status of the kex again by:
kex --status
It should now list the vnc sessions
Type the following command to start the kali windows:
kex --win -sl
If I run vncserver -localhost no
I get the following:
Killing Xtigervnc process ID 29... success!
tail /home/vi/.vnc/Vik.localdomain:5901.log
:
Xvnc TigerVNC 1.11.0 - built 2021-03-22 21:21
Copyright (C) 1999-2020 TigerVNC Team and many others (see README.rst)
See https://www.tigervnc.org for information on TigerVNC.
Underlying X server release 12010000, The X.Org Foundation
Mon May 24 18:42:53 2021
vncext: VNC extension running!
vncext: Listening for VNC connections on all interface(s), port 5901
vncext: created VNC server for screen 0
Mon May 24 18:43:24 2021
ComparingUpdateTracker: 0 pixels in / 0 pixels out
ComparingUpdateTracker: (1:-nan ratio)
vncserver: /usr/bin/Xtigervnc did not start up, please look into '/home/vi/.vnc/Vik.localdomain:5901.log' to determine the reason! -1
Am new to kali linux
Asked by Victor Gumbo
(1 rep)
May 24, 2021, 05:13 PM
Last activity: Apr 13, 2022, 07:12 PM
Last activity: Apr 13, 2022, 07:12 PM