error using vncviewer

21 views
Skip to first unread message

Velocity

unread,
Dec 22, 2009, 9:09:30 AM12/22/09
to Linux Users Group
I am getting following error while trying to establish a vnc session
over ssh what should I do or look in for.

t@-laptop:~$ vncviewer 192.168.1.19
192.168.1.19 5900
java.net.ConnectException: Connection refused
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
at java.net.Socket.connect(Socket.java:525)
at java.net.Socket.connect(Socket.java:475)
at java.net.Socket.<init>(Socket.java:372)
at java.net.Socket.<init>(Socket.java:186)
at rfbProto.<init>(rfbProto.java:93)
at vncviewer.connectAndAuthenticate(vncviewer.java:193)
at vncviewer.run(vncviewer.java:122)
at java.lang.Thread.run(Thread.java:619)
java.net.ConnectException: Connection refused

Jeremiah Bess

unread,
Dec 22, 2009, 9:11:58 AM12/22/09
to linuxus...@googlegroups.com
Connection refused usually means that the destination router/firewall is not allowing port 5900 through. It could also mean your destination computer is running a firewall that is not allowing 5900.

Jeremiah E. Bess
Network Ninja, Penguin Geek, Father of four



--
You received this message because you are subscribed to the Linux Users Group.
To post a message, send email to linuxus...@googlegroups.com
To unsubscribe, send email to linuxusersgro...@googlegroups.com
For more options, visit our group at http://groups.google.com/group/linuxusersgroup

Daniel Eggleston

unread,
Dec 22, 2009, 11:53:55 AM12/22/09
to linuxus...@googlegroups.com
Usually when setting up a vnc session over ssh, I wind up using "vncviewer localhost" instead of "192.168.1.19" or something.  Can you tell us how you're setting up ssh?
--

          Daniel

chutsu

unread,
Dec 22, 2009, 2:11:13 PM12/22/09
to Linux Users Group
Just to make sure... but is the computer your trying to access in the
same network? like is it connected to the same router as you?

On 22 Dec, 16:53, Daniel Eggleston <egg...@gmail.com> wrote:
> Usually when setting up a vnc session over ssh, I wind up using "vncviewer
> localhost" instead of "192.168.1.19" or something.  Can you tell us how
> you're setting up ssh?
>

> On Tue, Dec 22, 2009 at 8:11 AM, Jeremiah Bess <jeremiah.b...@gmail.com>wrote:
>
>
>
> > Connection refused usually means that the destination router/firewall is
> > not allowing port 5900 through. It could also mean your destination computer
> > is running a firewall that is not allowing 5900.
>
> > Jeremiah E. Bess
> > Network Ninja, Penguin Geek, Father of four
>

Reply all
Reply to author
Forward
0 new messages