LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   VNC on LAN (https://www.linuxquestions.org/questions/linux-newbie-8/vnc-on-lan-95229/)

affeee 09-21-2003 02:48 PM

VNC on LAN
 
I have Redhat 8 on my firewall/router.I got two ethernetcards, WAN on eth0 and LAN on eth1. How can i connect thru VNC to my Redhat from LAN? When i start vncserver it uses my WANip.

pnh73 09-21-2003 03:57 PM

You need to configure the vnc server to listen on eth1, it seems that it is listening on eth0 by default.

affeee 09-21-2003 07:24 PM

How do i configure that?

affeee 09-22-2003 04:33 AM

i tried to start vncserver with:

Quote:

vncserver -interface 192.168.0.1

but it doesn´t work?

pnh73 09-22-2003 01:09 PM

try:
Code:

vncserver -interface eth1
interface refers to your network adapter so eth0 or eth1

affeee 09-22-2003 03:21 PM

still doesn´t work!?

pnh73 09-22-2003 03:50 PM

try
Code:

vncserver --help | more
to see what the syntax should be.
Maybe it is:
Code:

vncserver --interface=eth0
or
Code:

vncserver -interface=eth0
Are you getting specific errors when you do these commands?

affeee 09-22-2003 06:18 PM

Hey thanx for all your help, but it still doesnt work...

These are the options/switches:

Quote:

usage: vncserver [:<number>] [-name <desktop-name>] [-depth <depth>]
[-geometry <width>x<height>]
[-pixelformat rgbNNN|bgrNNN]
<Xvnc-options>...

vncserver -kill <X-display>
I have tried all kinds of switches, -interface eth1, -interface=eth1, --interface=eth1... but i get the same answer:


Quote:

New 'X' desktop is myisphostname.myispdomain:1

Starting applications specified in /root/.vnc/xstartup
Log file is /root/.vnc/myisphostname.myispdomain:1.log

pnh73 09-23-2003 12:46 AM

hmm, vncserver as a script seems to have no function for defining the interface it is started on. The only thing that i can do to see that you solve this problem (may require you to reconfig your network settings) is to swap your cables round so that eth0 is your lan and eth1 is your WAN connection.

Man page for vncserver: http://www.realvnc.com/man/vncserver.html


All times are GMT -5. The time now is 05:41 AM.