Page 1 of 1
VNC connection refused
Posted: Fri Apr 24, 2015 3:51 am
by GE_bill
I am attempting to connect my pi through VNC.
on the pi
pi@raspberrypi ~* vncserver :1
Starting applications specified in /home/pi/.vnc/xstartup
logfile is
.. Cannot find the font directory
xrdb: No such file or directory
xrdb: Can't open file '/home/pi/.Xresources'
The VNC connection from my laptop is refused.
Any idea how to fix this?
Thanks
Re: VNC connection refused
Posted: Fri Apr 24, 2015 9:37 am
by DirkS
Which program do you use on your laptop?
Did you specify the correct port on your laptop (should be 5901)?
Re: VNC connection refused
Posted: Fri Apr 24, 2015 9:56 pm
by GE_bill
How do I know which port on my laptop to use? Thank you for the reply
Re: VNC connection refused
Posted: Fri Apr 24, 2015 10:04 pm
by DougieLawson
GE_bill wrote:How do I know which port on my laptop to use? Thank you for the reply
If vncserver is running on :1 that's :1 on the client which maps to port 5901.
Try pointing your (java enabled) browser at
http://pi.local:5801
Re: VNC connection refused
Posted: Fri Apr 24, 2015 11:35 pm
by GE_bill
VNC server tells me I am at port 5900 exactly one off. Is that a problem?
Thank you
Re: VNC connection refused
Posted: Fri Apr 24, 2015 11:36 pm
by GE_bill
VNC viewer is running now but as soon as the screen pops up I am not able to click on anything it's just ... there I can't open or do anything. I checked and it is not in view only. I am using the latest version of Rasbian
Thanks
Bill
Re: VNC connection refused
Posted: Wed Mar 21, 2018 11:25 pm
by msatyendraece
While connecting to vnc viewer remember the below if you are facing any message called "Connection Refused"
when you started the server in raspberry pi as vncserver :1 then :1 is called as display
so in the viewer, you need to enter the ip address:590<display> it means if you have ip address like 10.0.0.58 then in vnc viewer you need to type 10.0.0.58:5901 this 1 is coming from the vncserver :1
This will solve this problem.
Re: VNC connection refused
Posted: Thu Jul 16, 2020 8:53 pm
by simortus
if the connection is refused when you enter the right IP address, it means that your VNC interface is disabled. go to menu/rpi-config/interfaces and enable it. Hope it helped
