LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Real VNC. Unable to connect (https://www.linuxquestions.org/questions/linux-networking-3/real-vnc-unable-to-connect-373259/)

joeman3429 10-15-2005 05:08 AM

Real VNC. Unable to connect
 
Hello,
today I discovered real vnc. I love it!
Anywho, here's my setup

Belkin Wireles router
2 computers behind the router. 1 Xp, 1 Fedora
VNC Server Free Edition 4.1.1 on both

I can connect to one computer from the other by typing into the Veiwer connection screen:

192.168.2.2:0
or
192.168.2.4:0

But, I do not understand how to connect from coputers outside my network. I've gone to whatismyip.com and gotten my external IP and typed things like:

<my ip>:5900

<my ip>:5902

into the connection window. Thats how I thought it was supposed to work, but I must be mistaken.

Can anybody show me how to make this work? I searched throught the mailing list on the real vnc website, but found nothing that worked for me.

Its 3:00AM and I'm sleepy. Thanks for any replies. I'm going to bed

spooon 10-15-2005 05:36 AM

Have your router route incoming port 590x to the corresponding port on one of the computers.

joeman3429 10-15-2005 03:59 PM

Ok, I went into my router settings and added this on my virtual server page:

Enable: Yes

Description: VNC

Inbound port: 5900-5909

Type: TCP

Private IP address:192.168.2.3

Private port: 5900-5909

I guess I just don't understand what I'm doing because I type

<my ip>:0

And I get this error: Unable to connect to host: connection refused (10061)

Any advice?

diggerb 10-15-2005 06:01 PM

I am having the same issue with Fedora Core 4, over the web. I only have the one PC at home right now, so I can't test it on the internal network. I am a bit of a Linux noob so bear with me...

I know vncserver *is* running, as you can see below:

# ps ax |grep vnc
3055 ? S 0:00 Xvnc :1 -desktop localhost.localdomain:1 (root) -http
d /usr/share/vnc/classes -auth /root/.Xauthority -geometry 1024x768 -depth 16 -r
fbwait 30000 -rfbauth /root/.vnc/passwd -rfbport 5901 -pn



My router is set to send port 5901 directly to the machine, but it is still refusing the connection.

Here is my xstartup file, which seems to execute without a hitch:

#!/bin/sh

# Uncomment the following two lines for normal desktop:
unset SESSION_MANAGER
exec /etc/X11/xinit/xinitrc

[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
xsetroot -solid grey
vncconfig -iconic &
xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
startkde &




On the install, I asked for no firewall, but what can I check with the commandline to make sure that this is true?

It is not a general network issue because I can SSH to the box and access the HTTP server remotely without any difficulty, and my current client machine can access other VNC servers both on the internal network and over the web.

Any ideas on what else might be worth checking?

joeman3429 10-18-2005 06:27 PM

any advice?


All times are GMT -5. The time now is 02:18 AM.