VNC listen specific interface

Corne Beerse cbeerse "at" gmail.com
Mon Dec 8 11:16:01 2008


John S wrote:
> I'm running ubuntu 8.04 with vnc4server.
>   
You might like to update, 8.10 is out and should not harm you.
> I'm trying to get my vnc server to listen on a specific interface. I
> don't want it listening on localhost, I want it listening on a virtual
> tun interface I setup, tun0, ip 10.6.7.0.
>   
Why not localhost? There is absolutely no harm in that.
> I tried adding the "-interface" option to the vnc4server script but Xvnc
> doesn't like it, "Unrecognized option: -interface".
>   
Read the manual for the available options. `Xvnc --help` can also list them.
Be noted, Xvnc (and every other X11-server) does need access to 
localhost (127.0.0.1) as that is used in the X11 communication. However, 
I have to admint, there are instances where localhost is not used, but 
as you ask this, you are no X11 guru.

Hence, better not restrict Xvnc from using the localhost (127.0.0.1) route.
> I also tried starting vnc4server like this, "vnc4server :1 -interface
> 10.6.7.0", but that didn't work either, "Unrecognized option: -interface".
>   
just a question: have you installed vnc4server from a download or from 
the ubuntu repositories? Ubuntu comes with a bundled vnc, best start 
using that. Once it works, try tweaking by altering options and/or 
replacing the binaries.
> How would I make vnc listen on a specific interface?
>   
First get it going, then it is depending on the way you use it. As far 
as I know, the best way to avoid vnc-trafic over a port or nic is to use 
a firewall to restrict it. The origional (now antique) vnc 
implementations did not have any security what so ever. Current 
implementations might have added security but donnot rely on it.


Success