How to set (or get) server listening IP (like port) on HTTP server?

delphi

(Marcos Cunha Lima) #1

Hi

Using Delphi Berlin and Remoting SDK (latest version).

I’m using TRoIndyHTTPServer and need to set/get listening IP for the server (for instance, I have a machine with two LAN cards, two IPs and need to set HttpServer to listen to one card or the other). Is there a way to do that?


(EvgenyK) #2

Hi,

see TROIndyHTTPServer.IndyServer.Binding


(Marcos Cunha Lima) #3

I am trying to simply get the IP using:

RoServer.IndyServer.Bindings.Items[0].IP

but it always returns 0.0.0.0


(Marcos Cunha Lima) #4

Is there any documentation regarding this matter? It seems that it’s listening all IPs (0.0.0.0) and I need to set it up to listen to a specific one.


(EvgenyK) #5

Have you tried to open this property in Object Inspector?

Pls address to Indy documentation. this is their part