Wayvnc is like x11vnc but for wayland

I have been looking for a vnc for wayland

there is nice documentatiom for wayvnc

By default wayvnc listens to 127.0.0.1:5900

Troubleshooting
XDG_RUNTIME_DIR not set in the environment

This happens when XDG_RUNTIME_DIR is not set, usually in SSH sessions.

$ wayvnc 0.0.0.0
error: XDG_RUNTIME_DIR not set in the environment.
ERROR: Failed to initialise wayland

Just set it with:

$ export XDG_RUNTIME_DIR=/run/user/10000

And start the server again. 

Or listen to 172.16.42.1 on port 9999:

$ wayvnc 172.16.42.1 9999

However, when connecting to a custom port like 9999, it requires to add a rule to accept the connection:

# nft add rule inet filter input iifname wlan0 tcp dport 9999 accept comment "Accept custom port over wifi"



1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.