User avatar
GE_bill
Posts: 32
Joined: Thu May 10, 2012 2:42 am
Location: Milwaukee WI

VNC connection refused

Fri Apr 24, 2015 3:51 am

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

DirkS
Posts: 10362
Joined: Tue Jun 19, 2012 9:46 pm
Location: Essex, UK

Re: VNC connection refused

Fri Apr 24, 2015 9:37 am

Which program do you use on your laptop?
Did you specify the correct port on your laptop (should be 5901)?

User avatar
GE_bill
Posts: 32
Joined: Thu May 10, 2012 2:42 am
Location: Milwaukee WI

Re: VNC connection refused

Fri Apr 24, 2015 9:56 pm

How do I know which port on my laptop to use? Thank you for the reply

User avatar
DougieLawson
Posts: 39120
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

Re: VNC connection refused

Fri Apr 24, 2015 10:04 pm

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
Note: Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

Criticising any questions is banned on this forum.

Any DMs sent on Twitter will be answered next month.
All non-medical doctors are on my foes list.

User avatar
GE_bill
Posts: 32
Joined: Thu May 10, 2012 2:42 am
Location: Milwaukee WI

Re: VNC connection refused

Fri Apr 24, 2015 11:35 pm

VNC server tells me I am at port 5900 exactly one off. Is that a problem?

Thank you

User avatar
GE_bill
Posts: 32
Joined: Thu May 10, 2012 2:42 am
Location: Milwaukee WI

Re: VNC connection refused

Fri Apr 24, 2015 11:36 pm

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

msatyendraece
Posts: 1
Joined: Wed Mar 21, 2018 11:20 pm

Re: VNC connection refused

Wed Mar 21, 2018 11:25 pm

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.

simortus
Posts: 1
Joined: Mon Jun 22, 2020 12:05 pm

Re: VNC connection refused

Thu Jul 16, 2020 8:53 pm

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 :D

Return to “Networking and servers”