Is there a way to change IP or Port of the server at the client? For instance, we are trying to code a server in which all configuration would be set by a client. When it is up, it assumes an IP default (127.0.0.1) and port default (8099).
Then, a client connects and changes all settings including IP or Port. I know that this could close the connection but I am struggling to do that as it seems that the server freezes.
The server change code is:
// self.FPort is the changed port FROServer.Port := self.FPort; if self.FIP <> '' then begin FRoServer.IndyServer.Bindings.Clear; socket := FRoServer.IndyServer.Bindings.Add; socket.IP := self.FIP; socket.Port := self.FPort; end;