You are not logged in.

#1 2009-05-14 14:53:44

jedimastermaniac
Member
Registered: 2008-05-23
Posts: 14

[SOLVED] x11vnc refuses connection

Hello there fellow archers.

Being a total nub in remote desktops i d like some help here
i need to use a vnc server on my PC  so i can access it remotely from work. I Chose x11vnc and starting it and setting it up with passwords , ports ,etc.

However when i try to access it from work i get an error about "wrong protocol" or other stuff from different viewers about the rdp server if it actually is one.

Host/Server is Arch64 the client is win Vista . Tried with tightvnc , realvnc viewers
Through network i can access it the problem is via the internet. Do i have to check that Enable SSL thing ? i dont tick that one

Last edited by jedimastermaniac (2009-05-16 07:44:55)

Offline

#2 2009-05-14 15:08:02

brisbin33
Member
From: boston, ma
Registered: 2008-07-24
Posts: 1,796
Website

Re: [SOLVED] x11vnc refuses connection

are you forwarding port 5900 (or whatever port you're using) on your router to your arch box?

Offline

#3 2009-05-14 15:21:20

jedimastermaniac
Member
Registered: 2008-05-23
Posts: 14

Re: [SOLVED] x11vnc refuses connection

yup i am .
Dont know though if i have to edit hosts.allow, resolve.conf or any other similar file for it and aye 5900 is my choice too tongue

Offline

#4 2009-05-14 15:25:22

brisbin33
Member
From: boston, ma
Registered: 2008-07-24
Posts: 1,796
Website

Re: [SOLVED] x11vnc refuses connection

you'll likely have to edit hosts.allow i'm not sure what's needed i always tunnel port 5900 though ssh so it looks like im connecting from localhost (which is always allowed).  i can give you the steps to set that up if you're interested, it's the secure/recommended way to do it.

Offline

#5 2009-05-15 06:27:25

jedimastermaniac
Member
Registered: 2008-05-23
Posts: 14

Re: [SOLVED] x11vnc refuses connection

is the wiki here like ur steps ? http://wiki.archlinux.org/index.php/SSH
anyway i managed to connect today .... for 2 seconds!!! tongue
for some reason port 5900 wouldn't work for me though the 6100 would 0_0. strange
matter is that after iconnect today ... i saw my pc's screensaver ( tongue) and after that when i moved the mouse a bit to stop the screensaver.... the connection was dropped... with the message that the "connection reset by peer"
Now i can't connect at all
I might as well try the SSH way in order to go on wink

i d say i almost semi-solved this smile

Offline

#6 2009-05-15 16:51:13

brisbin33
Member
From: boston, ma
Registered: 2008-07-24
Posts: 1,796
Website

Re: [SOLVED] x11vnc refuses connection

well, those connection problems you mention there might not be solved by tunneling through ssh, but you never know.  the basics of it are this, and you can google further.

setup an ssh server on your arch box via the wiki you've linked

make sure you can connect to your server through the great program Putty on the vista side

in your Putty config, tunnel the vnc port you're using through the ssh connection (google for exact instructions)

reconnect to your arch box via putty with the port successfully tunneled

(from within this ssh connection and not before) start x11vnc like this:

x11vnc -nopw -display :0 -localhost

what this means is x11vnc will only accept connections from localhost (thus no password required).

open tighvnc and connect to localhost:6100 (or whatever)

now all of your vnc traffic is sent through the encrypted channel, and your system thinks its connecting from/to itself (thus negating all the hosts.allow iptables troubles that can occur).

good luck!

FWIW, you can tunnel any ports in with ssh, then you can vnc, stream icecast, do whatever all while only having a single, secure point of entry to your box from the outside world.

Offline

#7 2009-05-16 07:44:36

jedimastermaniac
Member
Registered: 2008-05-23
Posts: 14

Re: [SOLVED] x11vnc refuses connection

anyway x11vnc seems to work now .. seems like someone had shut down the PC that time ... nice timing tongue
Problem Solved smile in case it continues i llk just learn how to use ssh smile

Offline

Board footer

Powered by FluxBB