LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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 04-18-2010, 03:06 AM   #1
parkarnoor
Member
 
Registered: Apr 2010
Posts: 54

Rep: Reputation: 0
How to connect from windows to linux. using VNC


Dear all,

my problem is i am unable to connect linux using windows. i am using VNC server.

i installed VNC server on linux. and run the command vncserver:
the message shown is
New 'x' destop is localhost.localdomain:1
Starting applications .....
Log gile is /root...........

which is correct

now on windows i installed TightVNC and start client. i inserted linux ip address where vncserver is installed. i.e 172.25.30.112:1

but it is unable to connect

i tried from browser also i.e http://172.25.30.112:5801
but no result
i saw the port number using command lsof | grep vnc
i saw portnumbers for http,for xdestop.

kindly suggest what to do.

if step by step guide is available let me know

thanks
noor parkar
 
Old 04-18-2010, 05:08 AM   #2
Agrouf
Senior Member
 
Registered: Sep 2005
Location: France
Distribution: LFS
Posts: 1,591

Rep: Reputation: 79
I believe the port is 5901 and not 5801.
Are you able to connect locally?
Are you able to ping the machine from Windows?
Do you have a firewall on Windows?
Please post the output of iptables -L
 
Old 04-18-2010, 07:55 AM   #3
johnsfine
Guru
 
Registered: Dec 2007
Distribution: Centos
Posts: 5,083

Rep: Reputation: 1110Reputation: 1110Reputation: 1110Reputation: 1110Reputation: 1110Reputation: 1110Reputation: 1110Reputation: 1110Reputation: 1110
Quote:
Originally Posted by parkarnoor View Post
New 'x' destop is localhost.localdomain:1
You never gave the Linux system a hostname?? So it has defaulted to localhost.localdomain?

Quote:
Log gile is /root...........
You are running vncserver as root??

I haven't / wouldn't try that. I run vncserver in an ordinary account and use the su command in just the terminal window that really needs root access, while leaving the rest of the desktop as an ordinary user.

Quote:
but it is unable to connect
Without knowing more about your network setup, I don't even know what questions to ask.

Quote:
i tried from browser also i.e http://172.25.30.112:5801
I didn't know you could do that, so I tried. I quickly realized 5801 was someone else's vncserver on our shared Linux box (because my password was wrong). My vncserver is always started with :67 so I always get the same one whether or not other people have one open. So I tried :5867 in FireFox instead of 5801. Then my vncserver password worked and firefox opened java.exe running some vncclient that I didn't know I had. The cursor and a few other details work better than in the vnc clients I use. But generally, this java one is enough slower that I'd rather not use it.

Anyway, you seem to have a valid second way of accessing your vnc port, making it more obvious that the problem is not in your vncclient program, but in some firewall or other network issue.

Quote:
Originally Posted by Agrouf View Post
I believe the port is 5901 and not 5801.
I don't exactly know that aspect of it, but my quick experiment fit the OP's 5801, not your 5901.

Quote:
Are you able to connect locally?
Trying to figure out what you mean by that. Do you mean run a vnc client on the same system as the vnc server is running?

Quote:
Are you able to ping the machine from Windows?
A very important question when diagnosing a network problem.

Quote:
Do you have a firewall on Windows?
Another important area to investigate.

Last edited by johnsfine; 04-18-2010 at 02:42 PM.
 
Old 04-18-2010, 03:05 PM   #4
Agrouf
Senior Member
 
Registered: Sep 2005
Location: France
Distribution: LFS
Posts: 1,591

Rep: Reputation: 79
Quote:
Originally Posted by johnsfine View Post
Do you mean run a vnc client on the same system as the vnc server is running?
Yep, that is what I mean.
 
Old 04-18-2010, 11:57 PM   #5
parkarnoor
Member
 
Registered: Apr 2010
Posts: 54

Original Poster
Rep: Reputation: 0
cannot connect via browser

Dear now i am able to connect using tightvnc client in windows. i can see linux desktop. but i cannot logon using browser.i tried 5801,then 5901 and 6001. in this 6001 is for http but still it doesnot work.i disabled my internal proxy server for this. but sill not able to connect.

do i need latest java run time on windows.

what else i need

thanks
noor parkar
UAE
 
Old 04-19-2010, 06:44 AM   #6
johnsfine
Guru
 
Registered: Dec 2007
Distribution: Centos
Posts: 5,083

Rep: Reputation: 1110Reputation: 1110Reputation: 1110Reputation: 1110Reputation: 1110Reputation: 1110Reputation: 1110Reputation: 1110Reputation: 1110
Why do you want to logon using a browser? What is wrong with using tightvnc?

I was interested to discover I can logon using a browser and that I have some Java version of a VNC client that I hadn't realized was installed. But it is enough slower, I won't be using it for actual work. I will continue to use one of the two other VNC clients I had been using (one of which is tightvnc).
 
Old 04-19-2010, 11:50 PM   #7
parkarnoor
Member
 
Registered: Apr 2010
Posts: 54

Original Poster
Rep: Reputation: 0
able to connect from windows using tightvnc but not from browser

Dear it is right. but just want to know the reasons why it is not workin from browser. i want to see the interface and login mechanism.
again how it will show linux box on the interface. these all prompted me to check via browser also

Thanks
noor parkar
UAE
 
  


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
No able to VNC from windows to Linux box but iam able to vnc from linux to windows. vinaykori Linux - Software 1 01-20-2008 09:46 AM
VNC connection to SUSE Linux 10 from a Windows XP VNC Viewer determin2excel Linux - Software 13 10-03-2007 09:38 AM
VNC Client to connect from Windows to My SuSE Box vangelis Linux - Networking 4 07-30-2006 08:10 PM
windows vnc client and linux vnc server problem tungaw2001 Linux - Software 8 06-17-2006 12:06 AM
VNC on linux connect via windows linuxmandrake Linux - Software 1 06-23-2005 05:02 PM


All times are GMT -5. The time now is 08:11 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration