antlersoft / android-vnc-viewer

Automatically exported from code.google.com/p/android-vnc-viewer
68 stars 26 forks source link

Using repeater mode 2 - hangs on establishing handshake. #275

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Setting uvncrepeater in mode 2
2. connecting server to the repeater (server is behind firewall)
3. connecting android-vnc do repeaterer

What is the expected output? What do you see instead?
Connecting...
Establishing handshake.
Please wait...

What version of android-vnc-viewer are you using?
0.5.0

Which VNC server/version are you using?  On which platform?
UltraVNC Win32 Server SC 20.3, on Windows XP SP3

What device are you using?
Sony Ericsson Xperia Arc S (X12)

Are you using a custom ROM?  If so, which?
none

Please provide any additional information below.

FAQ says how to configure connection using ultravnc repeater in mode 1, and I 
want to use mode 2. Using this mode both client and server may be behind 
firewalls, and repeater may be completely somewhere else.

When connecting from desktop I'm using command (and it works!):
vncviewer.exe -connect ID:6969 -proxy repeater.address.com:5900

Connection configuration of androidvnc:
server:
repeater.address.com
port:
5900
Repeater:
ID:6969

Server is the SC (Single Click) version configured like following 
(helpdesk.txt):
[HOST]
Connection
-id 6969 -connect repeater.address.com -noregistry

Repeater is Linux version configured like fallowing (/etc/uvncrepeater.ini):
[general]
;Ports
viewerport = 5900
serverport = 5500
maxsessions = 4
logginglevel = 3
allowedmodes = 2
[mode2]
requirelistedid = 1
idlist0 = 6969

Log from repeater as fallowing (/var/log/uvncrepeater.log):
# AFTER CONNECTING SERVER:
UltraVnc Sun Nov  6 14:29:46 2011 > acceptConnection(): connection accepted ok 
from ip: server.address.com
UltraVnc Sun Nov  6 14:29:46 2011 > nonBlockingRead(): start
UltraVnc Sun Nov  6 14:29:46 2011 > nonBlockingRead(): returning normally
UltraVnc Sun Nov  6 14:29:46 2011 > parseId(): IdCode = ID:6969
UltraVnc Sun Nov  6 14:29:46 2011 > acceptConnection():  Server sent code 6969
UltraVnc Sun Nov  6 14:29:46 2011 > findDuplicateIdIndex(): similar ID not found
UltraVnc Sun Nov  6 14:29:46 2011 > isCodeInIdList(): ID code match found (6969)
UltraVnc Sun Nov  6 14:29:46 2011 > addServerList(): Server added to list: code 
= 6969, index = 0
UltraVnc Sun Nov  6 14:29:46 2011 > findViewerList(): Warning, viewer not found 
(code = 6969)
UltraVnc Sun Nov  6 14:29:46 2011 > acceptConnection(): respective viewer has 
not connected yet
UltraVnc Sun Nov  6 14:29:46 2011 > nonBlockingRead(): start
UltraVnc Sun Nov  6 14:29:51 2011 > nonBlockingRead(): returning 12 bytes
UltraVnc Sun Nov  6 14:29:51 2011 > readPeerHandShake(): len = 12
# AFTER TRYING TO CONNECT androidvnc
UltraVnc Sun Nov  6 14:29:58 2011 > routeConnections(): new viewer connecting, 
accepting...
UltraVnc Sun Nov  6 14:29:58 2011 > acceptConnection(): connection accepted ok 
from ip: client.address.com
UltraVnc Sun Nov  6 14:29:58 2011 > acceptConnection(): pv = RFB 000.000
UltraVnc Sun Nov  6 14:29:58 2011 > writeExact(): start
UltraVnc Sun Nov  6 14:29:58 2011 > writeExact(): returning normally
UltraVnc Sun Nov  6 14:29:58 2011 > nonBlockingRead(): start
UltraVnc Sun Nov  6 14:29:59 2011 > nonBlockingRead(): returning normally
UltraVnc Sun Nov  6 14:29:59 2011 > parseId(): IdCode = ID:6969
UltraVnc Sun Nov  6 14:29:59 2011 > acceptConnection():  Viewer sent code 6969
UltraVnc Sun Nov  6 14:29:59 2011 > findDuplicateIdIndex(): similar ID not found
UltraVnc Sun Nov  6 14:29:59 2011 > isCodeInIdList(): ID code match found (6969)
UltraVnc Sun Nov  6 14:29:59 2011 > addViewerList(): Viewer added to list: code 
= 6969, index = 0
UltraVnc Sun Nov  6 14:29:59 2011 > findServerList(): server found at index 0, 
code = 6969
UltraVnc Sun Nov  6 14:29:59 2011 > setViewerActive(): activated viewer at 
index 0, code = 6969
UltraVnc Sun Nov  6 14:29:59 2011 > setServerActive(): activated server at 
index = 0, code = 6969
UltraVnc Sun Nov  6 14:29:59 2011 > writeExact(): start
UltraVnc Sun Nov  6 14:29:59 2011 > writeExact(): returning normally
UltraVnc Sun Nov  6 14:29:59 2011 > addRepeaterProcList(): Added proc to 
index=0, pid=30737, code=6969
UltraVnc Sun Nov  6 14:29:59 2011 > forkRepeater(): in child process, starting 
doRepeater(5, 6)

Original issue reported on code.google.com by mirek.sz...@gmail.com on 6 Nov 2011 at 1:39

GoogleCodeExporter commented 9 years ago
Just realised, that it works fine with normal version of vncserver (not SC) 
after using the "add new client" option, specifing repeater as the client.

Original comment by mirek.sz...@gmail.com on 6 Nov 2011 at 1:56