I downloaded JavaViewer from repository
http://ultravnc.svn.sourceforge.net/vie ... avaViewer/
Compiled it and test to connect to host via direct connection (client and host in one subnet) - all fine. To enable connection via repeater I patch source from here
Re: How can I use Browser to connect throught the repeater? Here is a simple test page:
- Code: Select all
<HTML>
<HEAD><TITLE> test </TITLE></HEAD>
<BODY>
<SPAN style='position: absolute; top:0px;left:0px'>
<OBJECT
ID='VncViewer'
classid = 'clsid:8AD9C840-044E-11D1-B3E9-00805F499D93'
codebase = 'http://java.sun.com/update/1.4.2/jinstall-1_4-windows-i586.cab#Version=1,4,0,0'
WIDTH = 800 HEIGHT = 632 >
<PARAM NAME = CODE VALUE = VncViewer.class >
<PARAM NAME = ARCHIVE VALUE = VncViewer.jar >
<PARAM NAME = 'type' VALUE = 'application/x-java-applet;version=1.4'>
<PARAM NAME = 'scriptable' VALUE = 'false'>
<PARAM NAME = PORT VALUE=0>
<PARAM NAME = HOST VALUE=ID:1111>
<PARAM NAME = REPEATERHOST VALUE=192.168.1.148>
<PARAM NAME = REPEATERPORT VALUE=5900>
<PARAM NAME = ENCODING VALUE=Tight>
<PARAM NAME = 'Open New Window' VALUE='Yes'>
</OBJECT>
</SPAN>
</BODY>
</HTML>
But i have an error:
- Code: Select all
-- INIT --
In an Applet? : true
HOST PARAM : ID:1111
PORT PARAM : 0
REPEATERHOST PARAM : 192.168.1.148
REPEATERPORT PARAM : 5900
--RfbProto Constructor--
VncViewer: VncViewer[panel0,0,0,800x632,layout=java.awt.FlowLayout]
HOST: ID:1111
PORT: 0
REPEATERHOST: 192.168.1.148
REPEATERPORT: 5900
--RfbProto Constructor--
Using Repeater: 192.168.1.148:5900
Final System Name: ID:1111:0
RFB Protocol Version: RFB 000.000
java.io.EOFException
at java.io.DataInputStream.readFully(Unknown Source)
at java.io.DataInputStream.readFully(Unknown Source)
at RfbProto.readVersionMsg(RfbProto.java:284)
at VncViewer.prologueDetectAuthProtocol(VncViewer.java:417)
at VncViewer.connectAndAuthenticate(VncViewer.java:341)
at VncViewer.run(VncViewer.java:183)
at java.lang.Thread.run(Unknown Source)
Network error: remote side closed connection
It is a version problem? I use UltraVNC 1.0.9.1, but JavaViewer from 2008 year. Or maybe I define incorrect ports?
Via UltraVNC Viewer I sucessfully conected to this host via repeater, so the problem is in JavaViewer.
Any ideas? Maybe anybody have compiled JavaViewer with repeater support?
Repeater v0.14 on Fedora 13 2.6.33.3-85.fc13.i686.PAE, standard ports 5900 and 5500, firewall disabled
VNC Host on default port - Windows 7 with UAC off, UltraVNC 1.0.9.1
VNC Viewer and JavaViewer - Windows Vista with UAC off, Java 6 update 21, IE 8, UltraVNC 1.0.9.1