Just to put some closer on this subject... Rich and I have discussed this
problem through thouroughly and discovered that the sample HTTPServer
project has a line (line number 130) which says "Binding.IP := '127.0.0.1'"
and this IP address is what binds the server to be LAN only! Changing this
to match your TRUE LAN IP enabled the Port Forwarding (NAT) rule to work.

It is solved :)

Regards,
Simon
----- Original Message ----- 
From: "Rich Cooper" <[EMAIL PROTECTED]>
To: "Delphi-Talk Discussion List" <delphi-talk@elists.org>
Sent: Thursday, June 29, 2006 7:36 PM
Subject: Re: D7 with Indy 9 http server again


> Rob Kennedy wrote:
>
> > 1. At a command prompt, run the command
> >
> > telnet localhost 80
> >
> > 2. You should get a blank console window.
>
> I do - that part works.
>
> >Type the following:
> >
> > HEAD / HTTP/1.0
> >
> > What you type might not get echoed back to the screen, so type it
> > carefully. (You can always start over if you make a mistake.)
>
> As soon as I type HEAD, it goes to a bunch of squiggly characters
> and says 'connection lost', so this part doesn't work.  I never get to
> the end of the line.
>
> Does that mean there is no server running?
>
> Thanks,
> Rich
>
> > 3. After you type that line, press Enter twice. The blank line is what
> > tells the server that the request is complete.
> >
> > For example, on my computer, I get the following response:
> >
> > HTTP/1.1 200 OK
> > Date: Thu, 29 Jun 2006 18:01:33 GMT
> > Server: Apache/2.2.2 (Win32) PHP/5.1.4
> > X-Powered-By: PHP/5.1.4
> > Connection: close
> > Content-Type: text/html
> >
> > The "Server" field tells what server is running. You should get
> > something similar to let you determine which program is running on your
> > computer. By default, the TIdHTTPServer component uses a Server line
> > that mentions Indy, but you'll want to change that as you write your own
> > program.
> >
> > If you want to delay solving the problem and continue playing the the
> > server demo, configure it to listen a port other than 80. Ports 8000 and
> > 8080 are common choices. Then point your browser to
> > http://127.0.0.1:8080/ instead of the usual address. (And remember to
> > set the server component's Active property to True.)
> >
> > -- 
> > Rob
> > __________________________________________________
> > Delphi-Talk mailing list -> Delphi-Talk@elists.org
> > http://www.elists.org/mailman/listinfo/delphi-talk
> >
> __________________________________________________
> Delphi-Talk mailing list -> Delphi-Talk@elists.org
> http://www.elists.org/mailman/listinfo/delphi-talk

__________________________________________________
Delphi-Talk mailing list -> Delphi-Talk@elists.org
http://www.elists.org/mailman/listinfo/delphi-talk

Reply via email to