LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   VNC WinXP to Linux (https://www.linuxquestions.org/questions/linux-newbie-8/vnc-winxp-to-linux-306201/)

canuck_barlow 03-26-2005 02:10 AM

VNC WinXP to Linux
 
I downloaded and installed RealVNC for both my Windows XP and Slackware 10.1 computers.

I am able to access my WinXP computer from my Linux computer with no problems. However, I am unable to access my Linux from my Windows.

---------------------------------------------------------------------------------------------
vncserver

New 'robinder:1 (rbarlow)' desktop is robinder:1

Starting applications specified in /home/rbarlow/.vnc/xstartup
Log file is /home/rbarlow/.vnc/robinder:1.log
----------------------------------------------------------------------------------------------

in the xstartup file I added the command "gnome-session" and I made a password with vncpasswd.

When I try to connect from my windows using

vncviewer 192.168.1.104:1

I get a "unable to connect to host: Connection refused (10061)" error message.

I tried connecting to the :0 display and it connected and a password box came up. I entered the password but it said there was no password and asked if I wanted to try to reconnect. I guess when I was trying to get it to work I changed something and it doesn't come up anymore.

I've searched everywhere on the internet but I can't find any answers... please help!!

brundles 03-26-2005 06:28 AM

The password will be stored in a file in the .vnc directory - if you delete the passwd file in there it should reset the password and ask for a new one when you run the VNC server.

In terms of the refused connection, is the firewall setup to allow ranges of connections starting at 5900? VNC starts at 5900 and works upwards. i.e. robinder:1 uses port 5901, robinder:2 uses 5902 and so on.

canuck_barlow 03-27-2005 11:31 AM

When I deleted the passwd file and ran vncserver again I got the following message:

"You will require a password to access your desktops."

I ran vncpasswd again and made a new one, started vncserver and got the same error.

As for the port forwarding, I enabled it on my router but it didn't do anything. I was thinking since this was on the same LAN then it wouldn't matter but I re-read your post and you said "firewall". Is there a firewall enabled in Slackware 10.1 which is causing connections on certain ports to be denied? That would make sense since it can connect to Windows but Windows can't connect to it... If this persumption is right, how to I change the configuration of the Slackware firewall??

paul.nel 04-01-2005 12:40 AM

I suggest you try
Code:

/etc/initr.d/iptables stop
. This should switch off your firewall. Just to check if it is the firewall that is the problem. (Switch it back on afterwards off course, I am not suggesting you run with out a firewall)

Another thing. Try to not use vncpasswd and see what happens. Even if it says a password will be required. You will be prompted for a password when you login from your Windows machine. This password should be the same as the one for the user to whom that specific vncserver process belongs, ie the user that started the vncserver. Just enter it at the time you run vncviewer. Not sure if this will sort your problem out, but it might just.


All times are GMT -5. The time now is 04:47 AM.