LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How to connect from windows to linux. using VNC (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-connect-from-windows-to-linux-using-vnc-802650/)

parkarnoor 04-18-2010 03:06 AM

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

Agrouf 04-18-2010 05:08 AM

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

johnsfine 04-18-2010 07:55 AM

Quote:

Originally Posted by parkarnoor (Post 3939089)
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 (Post 3939148)
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.

Agrouf 04-18-2010 03:05 PM

Quote:

Originally Posted by johnsfine (Post 3939242)
Do you mean run a vnc client on the same system as the vnc server is running?

Yep, that is what I mean.

parkarnoor 04-18-2010 11:57 PM

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

johnsfine 04-19-2010 06:44 AM

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).

parkarnoor 04-19-2010 11:50 PM

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


All times are GMT -5. The time now is 07:11 AM.