Ok, I took some of the suggestions and tried them out. Here is what is happening now. I have two computers both set up to receive incoming connections on port 5900 for the viewer, and 5800 on the java server (default settings on both). First, I forwarded port 5800 directly to machine 1, and am able to access from inside and outside the network with the java server. No problem, but I need this to work on both Machine 1 and Machine 2, so I need a way to get port 5800 forwarded to both machines. So I used my router to forward EXTERNAL port 5252 to port 5800 on machine 1, and forward EXTERNAL port 5254 to port 5800 on machine 2. (I'm using a Linksys router so I used the "UPnP Forwarding" function to do this). That way if I type in http://mydomain.com:5252, the router should direct the traffic to port 5800 on machine 1 (which it is because I am getting the java applet prompt). With that setup, everything works fine from within the LAN when using the VNC viewer. But, if I try to access one of the machines from inside OR outside the network using the java server, I get the refused connection message. The message is gives me is "java.net.connect.Exception: connection refused". I tried every server name combination I could think of and it still boots me out. I tried www.mydomain.com:0, www.mydomain.com:1, www.mydomain.com:5800, www.mydomain.com:5252.... you get the idea. Am I missing something??? I'm getting pretty frustrated here. It seems to me that this should be fairly easy to accomplish, but VNC keeps booting me out! HELP!
------------------------------------------ From: John Aldrich <[EMAIL PROTECTED]> To: "'Casey Diercks'" <[EMAIL PROTECTED]>, [email protected] Subject: RE: Error: 10061 whenever I change the connection port from defau lt Date: Wed, 9 Feb 2005 08:38:31 -0500 Question: Why change the ports that VNC accepts connections on? You can set it up in your router so that port 5900 goes to machine #1's port 5900 , and port 5901 goes to machine #2's port 5900. Or you can set your router to forward ports 5600-5700 to machine #1's port 5800 to 5900, and ports 5800 to 5900 to machine #2's 5800 to 5900. You don't HAVE to change the default ports on the machines, just reconfigure the router. John -----Original Message----- From: Casey Diercks [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 08, 2005 10:51 PM To: [email protected] Subject: Error: 10061 whenever I change the connection port from default I have VNC set up on two computers on the same network. One is a Windows 2000 machine, and the other is an XP Pro machine. When I install VNC on both and use them with their default settings everything works fine. The problem is that I want to be able to access both from outside the network, so I have to change the incoming connection port on at least one of them. But whenever I change either of the ports in the Connections tab, the server will no longer accept incoming connections. I get error Connection Refused: 10061. What's going on here? I read on the FAQs that you can change either of the ports to suit your needs. I have my router set to forward incoming connections between ports 5600 to 5700 to machine one, and between ports 5800 to 5900 to machine two. I haven't changed any other settings from their default. _______________________________________________ Date: Wed, 9 Feb 2005 07:53:32 -0600 From: Angelo Sarto <[EMAIL PROTECTED]> Reply-To: Angelo Sarto <[EMAIL PROTECTED]> To: Casey Diercks <[EMAIL PROTECTED]> Subject: Re: Error: 10061 whenever I change the connection port from default Cc: [email protected] When you are using the viewer to connect to a server that is running on a non-standard port you need to specify the port name as well as the server name/ip in the connection box, like this 192.168.1.2:5801 --ANgelo Date: Wed, 9 Feb 2005 11:39:47 -0500 (EST) Subject: RE: Error: 10061 whenever I change the connection port from defau lt From: "William Hooper" <[EMAIL PROTECTED]> To: [email protected] John Aldrich said: > Question: Why change the ports that VNC accepts connections on? I can think of two: 1) So that the java viewer works without having to fiddle with the address 2) You have a router that doesn't support port forwarding as you describe. -- William Hooper --__--__-- Message: 11 From: John Aldrich <[EMAIL PROTECTED]> To: "'William Hooper'" <[EMAIL PROTECTED]>, [email protected] Subject: RE: Error: 10061 whenever I change the connection port from defa u lt Date: Wed, 9 Feb 2005 12:38:18 -0500 -----Original Message----- From: William Hooper [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 09, 2005 11:40 AM To: [email protected] Subject: RE: Error: 10061 whenever I change the connection port from defau lt John Aldrich said: > Question: Why change the ports that VNC accepts connections on? I can think of two: 1) So that the java viewer works without having to fiddle with the address 2) You have a router that doesn't support port forwarding as you describe. +-+-+ 1) I see your point, but it's just as easy to do the redirection on the router as it is to do it on the command-line, I would think... 2) Again, a good point, but in my (admittedly limited) experience, it's hard to find a router that can't do selective port forwarding/redirection. I've had two different DSL/Cable routers and both have been capable of redirecting port x to port y on a different computer. My intent was to suggest that if you are having problems, maybe it would work better if you'd change the port in the router, instead of on the server. John --__--__-- Message: 12 From: "Steven Clark" <[EMAIL PROTECTED]> To: <[email protected]> Subject: Re: Error: 10061 whenever I change the connection port from defa u lt Date: Wed, 9 Feb 2005 11:07:29 -0700 FYI. My low end Linksys VPN router supports port forwarding but not redirection. It does everything just fine and this would not be justification to replace it. Steven ----- Original Message ----- From: "John Aldrich" <[EMAIL PROTECTED]> To: "'William Hooper'" <[EMAIL PROTECTED]>; <[email protected]> Sent: Wednesday, February 09, 2005 10:38 AM Subject: RE: Error: 10061 whenever I change the connection port from defa u lt > -----Original Message----- > From: William Hooper [mailto:[EMAIL PROTECTED] > Sent: Wednesday, February 09, 2005 11:40 AM > To: [email protected] > Subject: RE: Error: 10061 whenever I change the connection port from > defau lt > > > John Aldrich said: > > Question: Why change the ports that VNC accepts connections on? > > I can think of two: > > 1) So that the java viewer works without having to fiddle with the address > 2) You have a router that doesn't support port forwarding as you describe. > +-+-+ > > 1) I see your point, but it's just as easy to do the redirection on the > router as it is to do it on the command-line, I would think... > > 2) Again, a good point, but in my (admittedly limited) experience, it's hard > to find a router that can't do selective port forwarding/redirection. I've > had two different DSL/Cable routers and both have been capable of > redirecting port x to port y on a different computer. > > My intent was to suggest that if you are having problems, maybe it would > work better if you'd change the port in the router, instead of on the > server. > John > _______________________________________________ > VNC-List mailing list > [email protected] > To remove yourself from the list visit: > http://www.realvnc.com/mailman/listinfo/vnc-list --__--__-- Message: 13 Date: Wed, 9 Feb 2005 13:37:59 -0500 (EST) Subject: RE: Error: 10061 whenever I change the connection port from defa u lt From: "William Hooper" <[EMAIL PROTECTED]> To: [email protected] John Aldrich said: [snip] > 1) I see your point, but it's just as easy to do the redirection on the > router as it is to do it on the command-line, I would think... Yo don't do it on the command-line, you have to do it every time you use the java viewer. By default the viewer points to the configured RFB port. If you change the RFB port outside of VNC, you must correct it every new session. > 2) Again, a good point, but in my (admittedly limited) experience, it's > hard to find a router that can't do selective port forwarding/redirection. Depends on the age and price point of the router, really. Most of the earlier ones didn't do redirection. > My intent was to suggest that if you are having problems, maybe it would > work better if you'd change the port in the router, instead of on the > server. It would be a useful step to test where the problem lies, that is for sure. -- William Hooper --__--__-- Message: 14 From: John Aldrich <[EMAIL PROTECTED]> To: "'William Hooper'" <[EMAIL PROTECTED]>, [email protected] Subject: RE: Error: 10061 whenever I change the connection port from def a u lt Date: Wed, 9 Feb 2005 14:08:25 -0500 -----Original Message----- From: William Hooper [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 09, 2005 1:38 PM To: [email protected] Subject: RE: Error: 10061 whenever I change the connection port from defa u lt John Aldrich said: [snip] > 1) I see your point, but it's just as easy to do the redirection on the > router as it is to do it on the command-line, I would think... Yo don't do it on the command-line, you have to do it every time you use the java viewer. By default the viewer points to the configured RFB port. If you change the RFB port outside of VNC, you must correct it every new session. > 2) Again, a good point, but in my (admittedly limited) experience, it's > hard to find a router that can't do selective port forwarding/redirection. Depends on the age and price point of the router, really. Most of the earlier ones didn't do redirection. > My intent was to suggest that if you are having problems, maybe it would > work better if you'd change the port in the router, instead of on the > server. It would be a useful step to test where the problem lies, that is for sure. +-+-+ 1) Yep. That's what I meant, actually... :-) 2) Agreed. I was thinking most of the current-generation of cable/dsl routers. Didn't stop to think that the first generation of routers might not support that. My bad. Thanks for stating my point more clearly than I could... :-) John --__--__-- _______________________________________________ VNC-List mailing list [email protected] To remove yourself from the list visit: http://www.realvnc.com/mailman/listinfo/vnc-list
