LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux Mint
User Name
Password
Linux Mint This forum is for the discussion of Linux Mint.

Notices


Reply
  Search this Thread
Old 06-10-2011, 08:53 AM   #1
BHABANIPRASADPATI
Member
 
Registered: Aug 2006
Location: ORISSA,INDIA
Distribution: Linux MINT
Posts: 34

Rep: Reputation: 15
Unhappy can't connect to tightvncserver over internet..but can connect in LAN


Hi,

after a lot of r&d I succeeded in getting the tightvncserver running in my mint 10 & able to connect to it from any windows or linux system over LAN using tightvncviewer. but when I try to access the server over internet(LAN is disconnected)using the same format xxxx.xxxx.xxxx.xxxx:5901, I get error as "Failed to Connect to server (xxxx.xxxx.xxxx.xxxx:1)...
what could be the possible reason for the same
 
Old 06-11-2011, 05:52 PM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,634

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by BHABANIPRASADPATI View Post
Hi,

after a lot of r&d I succeeded in getting the tightvncserver running in my mint 10 & able to connect to it from any windows or linux system over LAN using tightvncviewer. but when I try to access the server over internet(LAN is disconnected)using the same format xxxx.xxxx.xxxx.xxxx:5901, I get error as "Failed to Connect to server (xxxx.xxxx.xxxx.xxxx:1)...
what could be the possible reason for the same
Without details, there's no way of anyone here knowing. What kind of connection do you have? Firewalls? Proxy servers? Too many variables to guess at. First place I'd start would be your company firewalls...open the ports that you have your VNC server running on.
 
Old 06-12-2011, 12:36 AM   #3
BHABANIPRASADPATI
Member
 
Registered: Aug 2006
Location: ORISSA,INDIA
Distribution: Linux MINT
Posts: 34

Original Poster
Rep: Reputation: 15
No firewall should come in between, as the server is directly connected to internet and I am able to ping the IP from my Laptop. But yes the client is in VPN so must have been under company firewall..I will try to access the server from Lappy when directly connected to NET & will let u know

Last edited by BHABANIPRASADPATI; 06-12-2011 at 12:40 AM. Reason: additional info
 
Old 06-12-2011, 10:06 AM   #4
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,634

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by BHABANIPRASADPATI View Post
No firewall should come in between, as the server is directly connected to internet and I am able to ping the IP from my Laptop. But yes the client is in VPN so must have been under company firewall..I will try to access the server from Lappy when directly connected to NET & will let u know
Wow...your SERVER is directly connected to the Internet, with NO FIREWALL? And what you've said makes no sense...you say there's a direct connection..then mention a VPN. If you have to VPN in to your company's network, then that means there IS some sort of barrier. If not, and you can ping it, then you should check to see which IP addresses/ranges are allowed to connect.
 
Old 06-14-2011, 07:07 AM   #5
BHABANIPRASADPATI
Member
 
Registered: Aug 2006
Location: ORISSA,INDIA
Distribution: Linux MINT
Posts: 34

Original Poster
Rep: Reputation: 15
while experimenting, everything makes sense.

Server is running on Linux mint Julia & laptop is on Vista SP2.

My home system acts a server with no firewall(not configured yet and ofcourse nothing to loose) & at workplace while my LAPTOP is connected to the office LAN its under a VPN.

In the first case when I tried to access the Home PC from laptop through VPN, I could ping/ssh/sftp the home pc but could not connect to the tighvncsession. the client will show "connection Initiated" & then "Connection Failed". However when I tried connect to the tightvncserver session over ssh, it worked fine(a little bit lagging screen)

but this is not a problem when I connect my Laptop to the net & then I m directly able to connect to the tighvncserver.

So vnc over ssh somewhat solved my purpose, yet can anyone suggest why I m not able to access the vncserver through VPN..
 
Old 06-14-2011, 10:00 AM   #6
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,634

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by BHABANIPRASADPATI View Post
while experimenting, everything makes sense.
Server is running on Linux mint Julia & laptop is on Vista SP2.

My home system acts a server with no firewall(not configured yet and ofcourse nothing to loose) & at workplace while my LAPTOP is connected to the office LAN its under a VPN.

In the first case when I tried to access the Home PC from laptop through VPN, I could ping/ssh/sftp the home pc but could not connect to the tighvncsession. the client will show "connection Initiated" & then "Connection Failed". However when I tried connect to the tightvncserver session over ssh, it worked fine(a little bit lagging screen)

but this is not a problem when I connect my Laptop to the net & then I m directly able to connect to the tighvncserver.
So vnc over ssh somewhat solved my purpose, yet can anyone suggest why I m not able to access the vncserver through VPN..
Ok, again, you need to know the details of the company/office network. YOU may not have a firewall at home, but your COMPANY probably does. THAT firewall is probably blocking the port. SSH/SFTP both run over the 'standard' SSH port of 22..pings are ICMP requests and may be allowed (although it's dangerous). VNC is a different port...the fact that you can use it over SSH, but not 'directly', tells you it's a firewall issue.

Again, check your company firewall.
 
  


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
Kubuntu - Can't connect to the internet, but can connect to the LAN KellyT Linux - Networking 1 11-12-2009 04:17 AM
Cant connect to Lan but can connect to the internet gprecht Linux - Newbie 2 02-11-2009 08:29 PM
cant connect to internet thru a LAN kiswahili Linux - Networking 12 06-06-2008 11:30 PM
connect to internet trough wireless others connect to me with lan Amir Menesy Linux - Wireless Networking 1 11-13-2007 08:28 PM
No Internet but LAN and VPN connect LAN work fine??? xavior SUSE / openSUSE 7 11-09-2005 01:14 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux Mint

All times are GMT -5. The time now is 09:34 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