On Wednesday 11 October 2006 18:38, Alex Pelts wrote:
> Use netstat and see if ssh is listening on local host on the right port.
> default vnc port is 5900 by the way. 5800 is the one that java client is
> served on.

Thanks again Alex, I can shift the ports to the 5900 range, although all 
things being equal I cannot see how this will make any difference.  This is 
what netstat on the client (192.168.0.3) shows:
========================================
C:\WINDOWS\system32>netstat -ano

Active Connections

  Proto  Local Address          Foreign Address        State           PID
  TCP    127.0.0.1:1026         0.0.0.0:0              LISTENING       1796
  TCP    127.0.0.1:5802         0.0.0.0:0              LISTENING       1988
  TCP    127.0.0.1:5802         127.0.0.1:1357         TIME_WAIT       0
  TCP    192.168.0.3:1355       192.168.0.2:28         TIME_WAIT       0
  TCP    192.168.0.3:1356       192.168.0.2:28         ESTABLISHED     1988
  UDP    0.0.0.0:1028           *:*                                    976
  UDP    0.0.0.0:1039           *:*                                    976
  UDP    0.0.0.0:1053           *:*                                    976
  UDP    0.0.0.0:1092           *:*                                    976
  UDP    127.0.0.1:123          *:*                                    880
  UDP    192.168.0.3:123        *:*                                    880
========================================

After I disable the "Only accept connections from the local machine" and it 
connects to the VNC server (192.168.0.2), the client (192.168.0.3) shows:
========================================
C:\WINDOWS\system32>netstat -ano

Active Connections

  Proto  Local Address          Foreign Address        State           PID
  TCP    127.0.0.1:1026         0.0.0.0:0              LISTENING       1796
  TCP    127.0.0.1:1361         127.0.0.1:5802         ESTABLISHED     3812
  TCP    127.0.0.1:5802         0.0.0.0:0              LISTENING       2380
  TCP    127.0.0.1:5802         127.0.0.1:1359         TIME_WAIT       0
  TCP    127.0.0.1:5802         127.0.0.1:1361         ESTABLISHED     2380
  TCP    192.168.0.3:1360       192.168.0.2:28         ESTABLISHED     2380
  UDP    0.0.0.0:1028           *:*                                    976
  UDP    0.0.0.0:1039           *:*                                    976
  UDP    0.0.0.0:1053           *:*                                    976
  UDP    0.0.0.0:1092           *:*                                    976
  UDP    127.0.0.1:123          *:*                                    880
  UDP    192.168.0.3:123        *:*                                    880
========================================

And this is what the server (192.168.0.2) shows when I cannot connect:
========================================
F:\Documents and Settings\salcol>netstat -ano

Active Connections

  Proto  Local Address          Foreign Address        State           PID
  TCP    0.0.0.0:28             0.0.0.0:0              LISTENING       1948
  TCP    127.0.0.1:1027         0.0.0.0:0              LISTENING       908
  TCP    127.0.0.1:1042         127.0.0.1:1043         FIN_WAIT_2      1948
  TCP    127.0.0.1:1043         127.0.0.1:1042         CLOSE_WAIT      1948
  TCP    127.0.0.1:1045         127.0.0.1:1044         TIME_WAIT       0
  TCP    127.0.0.1:5803         0.0.0.0:0              LISTENING       252
  TCP    192.168.0.2:28         192.168.0.3:1356       ESTABLISHED     1948
  UDP    0.0.0.0:1040           *:*                                    1468
  UDP    127.0.0.1:123          *:*                                    1400
  UDP    127.0.0.1:1041         *:*                                    1948
  UDP    127.0.0.1:1047         *:*                                    240
  UDP    192.168.0.2:123        *:*                                    1400
========================================

and this is what it shows when a connection has been established:
========================================
F:\Documents and Settings\salcol>netstat -ano

Active Connections

  Proto  Local Address          Foreign Address        State           PID
  TCP    0.0.0.0:28             0.0.0.0:0              LISTENING       1948
  TCP    0.0.0.0:5803           0.0.0.0:0              LISTENING       1988
  TCP    127.0.0.1:1027         0.0.0.0:0              LISTENING       908
  TCP    127.0.0.1:1049         127.0.0.1:1050         FIN_WAIT_2      1948
  TCP    127.0.0.1:1050         127.0.0.1:1049         CLOSE_WAIT      1948
  TCP    127.0.0.1:1051         127.0.0.1:1052         TIME_WAIT       0
  TCP    192.168.0.2:28         192.168.0.3:1360       ESTABLISHED     1948
  TCP    192.168.0.2:1055       192.168.0.2:5803       ESTABLISHED     652
  TCP    192.168.0.2:5803       192.168.0.2:1055       ESTABLISHED     1988
  UDP    0.0.0.0:1040           *:*                                    1468
  UDP    127.0.0.1:123          *:*                                    1400
  UDP    127.0.0.1:1041         *:*                                    1948
  UDP    127.0.0.1:1054         *:*                                    652
  UDP    192.168.0.2:123        *:*                                    1400
========================================

Meanwhile, I read this in the Documentation:
" If VNC Server is configured to accept connections only via local loopback 
then the Hosts option is ignored. "  What does it mean by "Hosts option"?  
The field where you can set which IP addresses to accept/query/reject?

What else can I try?
-- 
Regards,
Mick
-- 
[email protected] mailing list

Reply via email to