Login  
Search All Forums
Dart Home | PowerTCP FTP for .NET | Custom Development Reply | PowerTCP FTP for .NET Topics | Forums   
AuthorForum: PowerTCP FTP for .NET
Topic: how to use specific IP Address/interface to connect FTP
yeeloon928

From: Malaysia
Posts: 2
Member Since: 11/09/14
posted November 9, 2014 10:50 PM

Hi,

i had multiple network interface in my pc,
how could i get to use the network interface which have bigger route metric value?

following is my code.

this.ftpClient.Session.DataLocalEndPoint = new Dart.Ftp.IPEndPoint(networkInterface, 0);

this.ftpClient.Session.DataLocalEndPoint.HostNameOrAddress, this.ftpClient.Session.DataLocalEndPoint.Port);
    this.ftpClient.Session.RemoteEndPoint.HostNameOrAddress = destination.Host;
    this.ftpClient.Session.RemoteEndPoint.Port = destination.Port;
    this.ftpClient.Session.Username = userName;
    this.ftpClient.Session.Password = password;

it seems does not use the IP Address i had specify in DataLocalEndPoint.
yeeloon928

From: Malaysia
Posts: 2
Member Since: 11/09/14
posted November 9, 2014 10:51 PM

Sorry, the correct snippet of code as below:

this.ftpClient.Session.DataLocalEndPoint = new Dart.Ftp.IPEndPoint(this.dedicatedDeviceService.DedicatedIpAddress, 0);

this.ftpClient.Session.RemoteEndPoint.HostNameOrAddress = destination.Host;
    this.ftpClient.Session.RemoteEndPoint.Port = destination.Port;
    this.ftpClient.Session.Username = userName;
    this.ftpClient.Session.Password = password;
Jamie Powell (Admin)

From: Rome, NY USA
Posts: 380
Member Since: 03/13/07

Extra Support Options
Custom Application Development

posted November 14, 2014 10:45 AM

Thank you for your post. An email containing a reply and request for additional information has been sent to you. Please let me know if you have not received this email and I will be happy to resend it.

Regards,
Jamie
Reply | PowerTCP FTP for .NET Topics | Forums   
This site is powered by PowerTCP WebServer Tool PowerTCP WebServer for ActiveX