Use Client.GetXAddr


procedure TFTPServer.SslFtpServer1ClientConnect(Sender: TObject;
 Client: TFtpCtrlSocket; AError: Word);
 Msg : String;
// Code
Msg := 'Connection on IP ' + Client.GetXAddr + ' and port ' + Client.GetXPort + ' by client at '+ Client.GetPeerAddr+':'+ Client.GetPeerPort;
// Code


Alper Albayrak wrote:
I have two IPs assigned to server machine. And TWSocketserver working with
Addr =

can i resolve the ip address that the client is connected.
For example 2 clients, first is connecting to address, second is
connecting to
But two of them is hosted with same server. I want to find which is
connecting to

To unsubscribe or change your settings for TWSocket mailing list
please goto
Visit our website at

Reply via email to