VNC connection refused

December 16, 2023, 19:19

KUTCHINI

Hello guys, I'm trying to setup VNC and connect to PI. It is worth mentioning that I already could connect to PI through VNC. Then I accidentally powered down the PI and since then I could'nt enter conncet again. I downloaded again OS (64-bit, bullseye, with desktop). I connect via SSH to the PI [btw I couldn't connect to the PI with username@hostname, but only with username@ip, I don't know if its relevant] I setup VNC connection in the raspi-config and resolution but cant connect via VNC. Any help would be helpful, Thank you! 🙂

k9t33n

have you used the hostname in the vnc?

k9t33n

you might need to use the IP instead

KUTCHINI

Hello, thank you for your reply. I'll try it now

KUTCHINI

'No such host known'

KUTCHINI

I cannot ssh with username@hostname either. I dont know why. I can only SSH with username@IP

k9t33n

did you sudo reboot now after you turned it on in raspi config?

KUTCHINI

no but when i pressed 'FINISH' it ask for a reboot. I'll try sudo reboot as well

KUTCHINI

still cant connect. I wonder if I just need to BOOT OS again..

k9t33n

I mean not really

KUTCHINI

This time different error - > timed out waiting for a response from the computer

KUTCHINI

never mind, still same problem

k9t33n

what's the error now again?

KUTCHINI

the connection was refused from the computer

k9t33n

oh, I don't know anymore tbh

k9t33n

vnc a while ago was having similar issues. then one night it just fixed itself and worked ever since

KUTCHINI

oof, any ideas who can help me?

KUTCHINI

should I have wifi enabled for vnc?

k9t33n

YES!

k9t33n

i mean theres loads of smart people in here. just look at everyone else who helps apart from me

KUTCHINI

i reinstalled and it works. connected via user@host

KUTCHINI

Ty !