Raspberry Pi Connect vs VNC¶
Choose Raspberry Pi Connect for browser access from another network. Choose direct VNC when your viewer can reach the Pi on a private LAN or VPN. Both desktop methods in this guide use the Wayland desktop on Raspberry Pi OS Bookworm or Trixie. For a terminal on Raspberry Pi OS Lite, use Connect's remote shell or SSH.
Choose by where you will connect from¶
| What you need | Raspberry Pi Connect | Direct VNC with WayVNC |
|---|---|---|
| A desktop from a browser away from home | Screen sharing works with a linked Raspberry Pi ID and internet access. | Use a VNC viewer and a private route to the Pi, such as a VPN. |
| A desktop on a LAN when internet is down | Connect needs the online service to establish a session. | Connect to the Pi's LAN IP with a compatible viewer while the LAN and desktop are running. |
| A terminal on Raspberry Pi OS Lite | Connect Lite offers a browser shell. | For a local terminal, use SSH. |
| The existing desktop with no monitor attached | Full Connect needs a supported Wayland session running as the linked user. | WayVNC needs a compatible graphical session and a usable output to share. |
Connect can carry a session directly or use an encrypted relay depending on the network. Direct VNC connects to the Pi's own listener. Keep that listener accessible from your trusted LAN or VPN and use the server's supported authentication. Raspberry Pi Connect documentation, Raspberry Pi VNC documentation
Check Connect before you depend on it away from home¶
Run these on the Pi as the Linux user who will use Connect.
On full Connect, doctor checks the compositor and screen-sharing services. With a running Connect client it can also check communication with the service. If Connect is off or you have yet to link the device, follow the Connect setup guide. Sign in to Connect in your browser and try Remote shell or Screen sharing, whichever you plan to use. For access away from home, repeat that step from a different network such as mobile data.
If Remote shell works but Screen sharing is missing, check that you have the full Connect client and a running supported Wayland desktop under the same user. From a terminal opened inside the Pi desktop, run the command below. It reports the type of that session. Running the command over SSH reports the SSH environment.
A wayland result is one prerequisite. Use rpi-connect doctor to check the screen-sharing service as well. When deciding how the Pi should behave after reboot, check remote shell and screen sharing separately. Connect can run as a user service before a graphical login if user lingering is configured. Screen sharing still needs a desktop session. Connect diagnostics and session requirements
With a supported desktop running and no HDMI display attached, Raspberry Pi OS can provide a virtual display. Connect can resize that display to fit your browser. Test your actual headless setup before relying on it after a reboot. Connect screen sharing documentation
Check VNC on the private network¶
On the Pi, identify its LAN address and check for a listener on the usual VNC port.
Use the address of the Pi's Ethernet or Wi-Fi interface on your LAN. A listener on 127.0.0.1:5900 accepts local connections. To reach that listener from another machine, use the SSH tunnel in the remote access guide. For direct LAN access, test the Pi's address in a compatible VNC viewer. A successful desktop login checks the path, authentication and desktop together.
If no listener appears on a standard setup, check whether WayVNC is enabled and the desktop is running. If the viewer reaches the server and reports a security-type error, follow the WayVNC connection guide. The port check covers direct VNC. Connect's screen-sharing service uses its own local socket. Raspberry Pi Connect logging documentation
If VNC works with HDMI attached and shows a blank screen without it, check which output the compositor can share in each state. WayVNC display checks
On a Pi 4B with Raspberry Pi OS Trixie, rpi-connect doctor reported that Connect was off. A temporary headless Wayland session with WayVNC on a loopback TCP port returned an RFB 003.008 banner, confirming that the separate VNC listener responded.
Check your recovery path before a trip¶
- Keep a known-working local login or SSH connection while configuring desktop access.
- Test Connect from your phone on mobile data if you plan to use it away from home. Test VNC from a client on the LAN or VPN you will actually use.
- After the next planned reboot, repeat the tests before relying on the Pi unattended. If nobody will sign in at the Pi, check that the access mode you need works in that state.