TFtpClient.LocalAddr

From Overbyte
Revision as of 01:35, 11 September 2006 by Kbrad1 (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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