Fromen
Posts: 1
Joined: Tue Sep 25, 2018 5:59 am

VNC Connections Dropping - Unable to Reconnect

Tue Sep 25, 2018 6:15 am

I'm teaching a class on using Raspberry Pis with ~50 students. We're having all of the students use headless VNC setups rather than connecting a keyboard/mouse/monitor, as setup is much faster for the students (using campus computer for other side of VNC connection). However a few are having a persistent issue where their VNC connection drops after a few minutes, and they are unable to reconnect to the Pi. Going non-headless reveals that the Pi is still functioning as normal (not frozen), is still connected to the campus WiFi network, and has the same IP address, but they cannot reconnect. Disconnecting and reconnecting to the campus network allows them to establish the VNC connection again.

We thought the cause could be the bottleneck created by all 50 VNC connections going through the same router, but it seems to always be the same Pis and they can't reconnect, so that doesn't seem to be it. I've also noticed that when we go non-headless on an affected Pi, it shows the campus computer as still being connected even though it's not. Forcing the computer to disconnect doesn't fix the problem, only reconnecting to the WiFi network.

Does anyone have an idea of why this is happening and how to fix it? Best workaround we've suggested for the affected students is to go non-headless, which is a bit more cumbersome for setup time. Any help is appreciated, thanks!

philippe453x
Posts: 3
Joined: Mon Sep 17, 2018 12:01 pm

Re: VNC Connections Dropping - Unable to Reconnect

Tue Sep 25, 2018 11:35 am

Hello
I got this disconnecting event only between the pc and the Pi3, after few minutes.
I’m using x11vnc instead RealVnc on Pi3 and Ubuntu 12.04 on pc
I didn’t solve but I’m thinking the firewall may help if we open formely the port use by VNC.

In my configuration the firewall isn’t active from last installation of raspbian : 2018-06-27-raspbian-stretch.zip
but I suppose there is a default behavior that isn’t known from users.

Bus also : is VNC able using multithread ?
See also the log for example on mine: .x11vnc.log.raspberrypi:5900
Something appears and stop connecting, it’s described on the log. Go to understand!

That’s all folk
:) Philippe from France
But if you find a solution, I’ll read it.

Return to “Troubleshooting”