TFtpClient.LocalAddr

From Overbyte
Jump to navigation Jump to search

Main page -> ICS component reference -> TFtpClient -> LocalAddr

Definition

property LocalAddr: string;

Default Value

0.0.0.0

Description

This property tells the component which IP address to bind to when making a connection. This is effective for multihomed systems. Using 0.0.0.0 allows the component to use any available IP address.

Example

FtpClient1.HostName := 'ftp.simtel.net';
FtpClient1.Port := 'ftp';
FtpClient1.LocalAddr := '0.0.0.0';
FtpClient1.UserName := 'anonymous';
FtpClient1.Password := 'john.smith@mycomp.com';
FtpClient1.OpenAsync;                            // Non-blocking open.

Best Practices

How To