943,923 Members | Top Members by Rank

Ad:
Dec 6th, 2008
0

VNC listen specific interface

Expand Post »
I'm running ubuntu 8.04 with vnc4server.

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.

I tried adding the "-interface" option to the vnc4server script but Xvnc doesn't like it, "Unrecognized option: -interface".

How would I make vnc listen on a specific interface?
Reputation Points: 10
Solved Threads: 0
Junior Poster in Training
shwick is offline Offline
63 posts
since Oct 2008
Dec 31st, 2008
0

Re: VNC listen specific interface

If it doesn't listen on localhost, it won't work.

Secondly, use iptables to allow/deny connections on a different interface if you don't want to allow connections to a specific interface.

FYI, "interface" is NOT the same as IP address, since you can have numerous IP addresses bound to the same interface (eth0, eth1, etc.)
Reputation Points: 128
Solved Threads: 8
Posting Whiz
TheOgre is offline Offline
390 posts
since Aug 2003
Dec 31st, 2008
0

Re: VNC listen specific interface

Yes I figured vnc4server wouldn't work unless it listened on localhost, I fogot to post back here.

I switched to x11vnc, when combined with xvfb allows me to start the server on any interface.

Yes I am aware that interfaces are not the same as ip addresses, however some servers use ip addresses to idenfity the interface they will listen on, such as Bind
listen-on { 127.0.0.1; 10.6.7.0; };
And some servers use the interface to identify the interface, such as Samba,
interfaces = lo, eth1
Last edited by shwick; Dec 31st, 2008 at 4:13 pm.
Reputation Points: 10
Solved Threads: 0
Junior Poster in Training
shwick is offline Offline
63 posts
since Oct 2008
Dec 31st, 2008
0

Re: VNC listen specific interface

Yup, I know the difference, but the way you originally worded it made me unsure of whether or not you understood the differences yourself.

(Incidentally, I thought the answer you got from the VNC list back on the 8th was sufficient.)
Reputation Points: 128
Solved Threads: 8
Posting Whiz
TheOgre is offline Offline
390 posts
since Aug 2003

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Linux Applications and Software Forum Timeline: OpenVPN how disable CSR?
Next Thread in Linux Applications and Software Forum Timeline: Hacker on my gateway?





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC