LocalPortUsed Property

Description

Returns the local port used in the last file transfer.

Syntax
object.LocalPortUsed

Remarks

This property can be used to determine the IP port of the local computer. Note that the LocalPort property returns the local port of the computer before a transfer starts.

This property would typically be used if the LocalPort property were set to 0 (zero), indicating that any valid unused port is to be chosen for the receive. To find out which port was actually used, read LocalPortUsed. If LocalPort was set to a non-zero value, then LocalPortUsed is the same as LocalPort.

This property is available after at least one file transfer.

See Also

Return to File Transfer Reference.

© 1997 Microsoft Corporation. All rights reserved. Terms of Use.