SourcePort Property

Returns the source port of the file transfer.

Syntax

NSFile.SourcePort

Remarks

This property can be used to determine the IP port of the sender. One of the uses of this property is to ensure that the source you received a transfer from is the correct source. This property can be useful both as a security measure to validate transfer sources, and also to sort out transfers from more than one source. Note that the EndpointAddress property in a multicast transfer indicates the multicast port that the receiver is listening to, not the sender's port.

This property is available after at least one file transfer.

© 1996-1998 Microsoft Corporation. All rights reserved.