TROTcpServer or TROHTTPServer single IP (localhost)

Hi,

there is a way to set up a server component (TROTcpServer or TROHTTPServer) that responds to a specific IP?

In the specific case I need to open a service only on localhost because it must be an internal service

Thank you very much

Hi,

you can use the OnManualBindSocket event.

in this event you can do something like

Socket4.Bind('127.0.0.1', Port);

see more at TROTcpServer.IntSetActive

1 Like