LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-21-2003, 02:48 PM   #1
affeee
LQ Newbie
 
Registered: Aug 2003
Distribution: Debian Sarge - 2.6.8
Posts: 14

Rep: Reputation: 0
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.
 
Old 09-21-2003, 03:57 PM   #2
pnh73
Member
 
Registered: Jul 2003
Location: Birmingham, UK
Distribution: Ubuntu,Debian
Posts: 381

Rep: Reputation: 30
You need to configure the vnc server to listen on eth1, it seems that it is listening on eth0 by default.
 
Old 09-21-2003, 07:24 PM   #3
affeee
LQ Newbie
 
Registered: Aug 2003
Distribution: Debian Sarge - 2.6.8
Posts: 14

Original Poster
Rep: Reputation: 0
How do i configure that?
 
Old 09-22-2003, 04:33 AM   #4
affeee
LQ Newbie
 
Registered: Aug 2003
Distribution: Debian Sarge - 2.6.8
Posts: 14

Original Poster
Rep: Reputation: 0
i tried to start vncserver with:

Quote:
vncserver -interface 192.168.0.1

but it doesn´t work?
 
Old 09-22-2003, 01:09 PM   #5
pnh73
Member
 
Registered: Jul 2003
Location: Birmingham, UK
Distribution: Ubuntu,Debian
Posts: 381

Rep: Reputation: 30
try:
Code:
vncserver -interface eth1
interface refers to your network adapter so eth0 or eth1
 
Old 09-22-2003, 03:21 PM   #6
affeee
LQ Newbie
 
Registered: Aug 2003
Distribution: Debian Sarge - 2.6.8
Posts: 14

Original Poster
Rep: Reputation: 0
still doesn´t work!?
 
Old 09-22-2003, 03:50 PM   #7
pnh73
Member
 
Registered: Jul 2003
Location: Birmingham, UK
Distribution: Ubuntu,Debian
Posts: 381

Rep: Reputation: 30
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?
 
Old 09-22-2003, 06:18 PM   #8
affeee
LQ Newbie
 
Registered: Aug 2003
Distribution: Debian Sarge - 2.6.8
Posts: 14

Original Poster
Rep: Reputation: 0
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
 
Old 09-23-2003, 12:46 AM   #9
pnh73
Member
 
Registered: Jul 2003
Location: Birmingham, UK
Distribution: Ubuntu,Debian
Posts: 381

Rep: Reputation: 30
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
remote desktop,vnc,ssh inside a lan durden2.0 Linux - Networking 3 09-22-2006 03:55 PM
need VNC to allow 'logout/login' from Gnome (gnome & VNC runs fine) spudler Linux - Networking 3 11-14-2004 10:02 AM
VNC over lan but not Internet? blop Linux - Software 2 01-21-2004 04:46 PM
Can VNC run under LAN? iamthewind Linux - Software 7 10-16-2003 10:33 PM
VNC - Selecting different WindowManagers with VNC cmfarley19 Linux - Software 0 04-16-2003 02:30 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:42 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration