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?

asked 05 Mar '11, 05:13

Mit's gravatar image

Mit
16
accept rate: 0%


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;
link

answered 07 Mar '11, 12:53

Lukas%20Matyska's gravatar image

Lukas Matyska ♦♦
90117
accept rate: 28%

edited 07 Mar '11, 13:06

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×20

Asked: 05 Mar '11, 05:13

Seen: 380 times

Last updated: 04 Apr '11, 14:22