TROTcpServer or TROHTTPServer single IP (localhost)


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


you can use the OnManualBindSocket event.

in this event you can do something like

Socket4.Bind('', Port);

see more at TROTcpServer.IntSetActive

1 Like