I want to share the display :0 of my Computer runngin Arch with my Android phone.

What I have tried: I connected to the computer via ssh and forwarded the VNC port. I used x0vncserver of the tigervnc package. Everything worked fine except the fact that the VNC server was available in the hole network.

But I only want to tunnle it through SSH. The tool vncserver has the option -localhost. In x0vncserver I could not find anything similar.


Now I found the solution. The alternative x11vnc allows to use the -localhost parameter. The complete command is:

x11vnc -display :0 -localhost

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.