Re: Web server and router problem WEIRD



mirko4u@xxxxxxxxx wrote:
Hello everyone,

I have a weird problem that I want to share, so that someone more
expert can tell me why this problem occurs.

I have a small home network, with a gateway/router/adsl modem connected
to the internet (USRobotics 9106).
Two pcs are connected to this device..

The gateway's IP is 192.168.1.1 while the pcs are 192.168.1.11 and
192.168.1.12.
No DHCP.
The pcs are configured with their fixed ips and the gateway/DSN server
set to 192.168.1.1.
Everything works fine, both the pcs can access the internet for surfing
and email receiving.

On one of these two pcs I have installed a webserver, that I have set
up to listen to port 81.
In the gateway's virutal servers configuration, I have set the TCP
incoming traffic on port 81 for the pc with the webserver.

The webserver works fine when someone else surfs on it using my WAN
external ip address (I've tried it with friends, with
http://xxx.xxx.xxx.xxx:81)
PROBLEM : I can surf on it from my network only if I use the LAN ip of
the webserver (http://192.168.1.12:81) and NOT the external WAN ip.

If I try using the wan external ip address, I cannot reach the web
server.
It's strange because if I try accessing the server via a free proxy
(www.phproxy.org, etc) I can see that the server is up and working, but
when I try to surf on it directly, I simply can't.

It has probably something to do with the gateway, because I have tried
to access the internet with an old traditional plain modem without
router, and when I use that, the webserver is reachable also using the
external wan ip address.



How can this be ?
I hope you didn't fall asleep while reading this message :-)


You can't address or access the external or public facing IP from and machine behind the router. That's not going to work. You must use the LAN IP that the Web server is using to access the machine from another machine on the LAN. You use Localhost to access the Web server from the Web server itself.

Duane :)

.



Relevant Pages

  • Web server and router problem WEIRD
    ... Two pcs are connected to this device.. ... The pcs are configured with their fixed ips and the gateway/DSN server ... On one of these two pcs I have installed a webserver, ... the webserver and NOT the external WAN ip. ...
    (comp.security.firewalls)
  • RE: Web Server on SBS Domain
    ... > webserver behind your SBS just like how the SBS Setup configures RWW and OWA. ... >> Im currently running a web server box in my SBS2003 domain. ...
    (microsoft.public.windows.server.sbs)
  • Re: Web server and router problem WEIRD
    ... Two pcs are connected to this device.. ... The pcs are configured with their fixed ips and the gateway/DSN server ... On one of these two pcs I have installed a webserver, ... the webserver and NOT the external WAN ip. ...
    (comp.security.firewalls)
  • Re: Trying to get my server working
    ... it is a 'webserver' question. ... A decent hosting service either has people dedicated to security or simply ... they simply pick up the sites, reinstall the server. ... This is primarily a web server but I am limited on funds and want to ...
    (microsoft.public.windows.server.sbs)
  • Re: blocking ports
    ... It means don't change anything on the webserver. ... Making the web server available to others outside your LAN is the job of the ... firewall not the webserver. ...
    (microsoft.public.windows.server.networking)