Access external IP from inside LAN [was RE: Problems
connecting]
Christopher Mc Carthy
cmccarthy "at" gltrade.com
Fri Dec 12 13:08:00 2003
This is what I would do as well - keep servers (services) listening on their
default ports, and just use port-forwarding to distinguish the machine.
BTW, a lot of SOHO routers will not let you access a server on your LAN
using the public IP address (WAN) - by default mine (Alcatel SpeedTouch
Home/510) won't. Try testing from outside your LAN (at work, or via a dial
up connection on a spare computer at home).
HTH
-----Original Message-----
From: "James Weatherall" <jnw "at" realvnc.com>
To: "'William Hooper'" <whooper "at" freeshell.org>, <vnc-list "at" realvnc.com>
Subject: RE: Problems connecting
Date: Thu, 11 Dec 2003 01:40:51 -0000
Organization: RealVNC Ltd.
> So both are listening on display 0 (which is port 5900).
>
> > but when I try to connect to
> > the computer setup for 5901 I cant connect, no matter which
> computer it
> > is.
>
> Because both are listening on display 0 (which is port 5900).
>
> > Both computers have Static Ip's
> >
> > 192.168.1.101 and 102
> >
> > I have my router currently setup to 5900-5900 -- 192.168.1.101 and
> > 5901-5901 -- 192.168.1.102
>
> You need to set the 192.168.1.102 machine to display 1 (which
> is port 5901).
Aha. William has found the actual problem!
An alternative to his solution is to configure the router:
<wanip>:5900 -> <.....101>:5900
<wanip>:5901 -> <.....102>:5900
Note that although the external ports have changed, the local ports are both
5900.
Cheers,
Wez