LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 03-30-2004, 01:12 AM   #1
DrD
Member
 
Registered: Nov 2003
Distribution: Fedora Core 4
Posts: 99

Rep: Reputation: 15
Vncviewer issues from under a router


I'm relatively new to VNC and after playing around with it a little, I managed to have a friend succesfully log into a gnome session on my suse linux 9.0 machine on :1. However, now I'm trying to do the same thing in reverse - VNC to his windows XP machine from my Suse machine, but for some really silly reason, tightVNC doesn't know how to go out through a gateway on it's own - I've got to tell it how to do that ... (why?) Here's tighvnc's documentation on VNCviewer:

http://www.tightvnc.com/vncviewer.1.html

Well, so, I try to do: "vncviewer -via 192.168.1.1 <my friend's WAN IP>:0"
and I get:
"ssh: connect to host 192.168.1.1 port 22: Connection refused
vncviewer: Tunneling command failed: /usr/bin/ssh -f -L 5599:67.161.223.178:5900 192.168.1.1 sleep 20."

So what can I do? I don't have the slightest clue what the details of that error above means... Also, My friend and I both have routers, and we both have ports 5900-5910 fowarded. And it's a linksys router, so yes, 192.168.1.1 is the gateway IP.

Anyone know what I need to do to correct this?
 
Old 03-30-2004, 07:32 AM   #2
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
Blog Entries: 1

Rep: Reputation: 422Reputation: 422Reputation: 422Reputation: 422Reputation: 422
Quote:
ssh: connect to host 192.168.1.1 port 22: Connection refused
I think this is your problem here. I don't use TightVNC, so I'm not exactly sure how it works, but it looks like it is trying to establish a ssh tunnel and then run VNC through that. However, it is trying to establish that ssh tunnel with your router, not your friends XP box.

Looking at the TightVNC page, I'm guessing that if you use your friends WAN IP address as the "gateway" that might allow the connection. So what I mean is:

vncviewer -via <my friend's WAN IP> <my friend's WAN IP>:0
 
Old 03-31-2004, 12:15 AM   #3
DrD
Member
 
Registered: Nov 2003
Distribution: Fedora Core 4
Posts: 99

Original Poster
Rep: Reputation: 15
Ok, found the issue.
I did try that option, but it couldn't seem to find my freind's WAN IP, just like when I simply did:
vncviewer <my friend's WAN ip>:0
BUT, I got that command to work simply by having my friend disable the windows XP firewall. Didn't need any of that gateway stuff after all. Thanks anyhow, it' looks like that's all it needed.
 
  


Reply



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
Vncviewer Filious Linux - Newbie 12 01-31-2013 12:24 PM
[root@localhost Desktop]# vncviewer 192.168.0.11:2 vncviewer not viewing kde display nickleus Linux - Software 13 10-27-2006 03:58 AM
vncviewer ankit_mcgill Linux - Newbie 3 11-11-2005 06:46 PM
Linksys router and DNS issues Neruocomp General 5 05-10-2005 10:14 AM
vncviewer jmarsh Solaris / OpenSolaris 1 04-27-2004 04:28 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 08:12 AM.

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