Xceed FTP Library Documentation
XceedFtp control reference / Properties / LocalDataPort property
In This Topic
    LocalDataPort property
    In This Topic

    Description

    This property allows you to specify the port of the client-side data connection. When the PassiveMode property is set to False, this property is the port for the address of the client-side listening socket waiting for the server’s data connection request.

    If the port specified in this property is not currently available on the current system, the Xceed FTP Library will return the FTP_E_INVALIDLOCALADDRESS error.

    When a data connection is active (when sending, receiving or listing files) this property is read-only.

    Data type

    Integer

    Default value

    0

    Declaration  

    HRESULT LocalDataPort( [out, retval] short* pnVal );

    HRESULT LocalDataPort( [in] short nVal );