[fpc-pascal] TFPHttpClient & TFPHttpServer

Michael Van Canneyt michael at freepascal.org
Wed Jan 4 01:56:30 CET 2023



On Wed, 4 Jan 2023, Mattias Gaertner via fpc-pascal wrote:

> On Tue, 3 Jan 2023 23:58:42 +0100 (CET)
> Michael Van Canneyt via fpc-pascal <fpc-pascal at lists.freepascal.org>
> wrote:
>
>> [...]
>>> Q4: TFPHTTPServer has property Address. I reckon it will be set to
>>> 'localhost' here. Is it correct?
>>
>> It depends on what you want. Best is to leave it empty.
>
> That will use 0.0.0.0, which is every interface. For security
> reasons the default should be more limited, like 127.0.0.1, should it
> not?

Depends on what you want to use it for. For production, I would be surprised
if it had to be 127.0.0.1...

Michael.


More information about the fpc-pascal mailing list