0 votes
by (200 points)
edited

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.2k points)
edited
 
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();
client.Connect("serverName");
IPEndPoint lep = (IPEndPoint)client.LocalEndPoint;
IPAddress lip = lep.Address;
...