Unable to connect through VNC
22,728
I found the solution here. VNC was bound to local host and I had to bind it to lan interface
I ran vncserver -localhost no
and it worked.
Related videos on Youtube
Author by
anurag-jain
Updated on September 18, 2022Comments
-
anurag-jain over 1 year
I'm trying to configure VNC server on my Ubuntu 19.04 desktop so that I can connect to it through my windows laptop over home wifi. I followed steps mentioned https://www.cyberciti.biz/faq/install-and-configure-tigervnc-server-on-ubuntu-18-04/
My firewall is inactive and I am unable to connect from my laptop. I tried to connect from local vnc viewer using 127.0.0.1:5902 and it connects.
But if I give local-lan-ip:5902 I see the error "unable to connect to socket:connection refused"
I'm really not a pro at configuring stuff on linux, can someone help me figure out the issue ?
-
dldnh almost 3 yearsI have used vncserver for years and years but never had trouble connecting until this morning after a change of IP address. And by gum for whatever reason, this was the fix!