Our Products:   CompleteFTP  edtFTPnet/Free  edtFTPnet/PRO  edtFTPj/Free  edtFTPj/PRO
0 votes
3.1k views
in .NET FTP by (340 points)
Hello,

Is there any way to show the IP address I'm connected from while connected to an FTP server?

PublicIPAddress shows nothing.

Thanks.

8 Answers

0 votes
by (51.6k points)
Do you mean which interface on your machinr the connection is going out on?
0 votes
by (340 points)
Yes.
0 votes
by (162k points)
No, unfortunately that property isn't publicly available.

If you are using the open source version, you can add it reasonably easily - it is the property LocalAddress on FTPControlSocket.
0 votes
by (340 points)
I'm on the PRO version. I take it that it not available under there?
0 votes
by (162k points)
If you have a current license agreement, email us with the details and we can sort something out.
0 votes
by (340 points)
Before you go through that trouble, is the LocalAddress property information available before or after a connection is made by FTPConnection?
0 votes
by (162k points)
Only afterwards - that's when you know what local interface was used.
0 votes
by (340 points)
Understood.

I found an alternate way to determine the information I need.

Thanks for the help.

Categories

...