0 votes
by (200 points)

I need to determine the address of the client (my PDA) when connecting to FTP server. Is it possible to obtain this information through Rebeh.FTP?

1 Answer

0 votes
by (70.4k points)
Best answer

It is possible to obtain the client IP address using the LocalEndPoint property after the client Ftp object is connected to the FTP server as follows:

using System.Net;
using Rebex.Net;

Ftp client = new Ftp();
IPEndPoint lep = (IPEndPoint)client.LocalEndPoint;
IPAddress lip = lep.Address;