Newsgroups : Borland : borland.public.delphi.internet.winsock : 2007 Jan : Re: idHTTPServer pick random port
| Subject: | Re: idHTTPServer pick random port |
| Posted by: | "Robert Small" (..@noisp.com) |
| Date: | Wed, 28 Feb 2007 14:36:37 |
"Remy Lebeau \(TeamB\)" <no.spam@no.spam.com> wrote:
>
>"GS" <info@no-spam-.com> wrote in message
>news:459ac877$1@newsgroups.borland.com...
>
>> With the TServerSocket component if I assign port # 0 to the
>> component, it will pick a random available port to listen on.
>> Does idHttpServer work the same ?
>
>Yes. What you describe is a characteristic of the underlying socket
>API itself.
OK.
So I now have my server listening on a random port (say 4321).
How do I get the client to communicate using this port?
Thanks.
--
Bob Small
none