RelayedPort Property

The port allocated on the server for the component.

Syntax

public int RelayedPort { get; }
Public ReadOnly Property RelayedPort As Integer

Default Value

0

Remarks

After a successful call to the Allocate method, this property will reflect the port allocated on the server for the component. The IP address associated with the allocation is reflected by the RelayedIP property.

When the component sends data to its peers via the server, the packets will appear to originate from the relayed IP address and port. Similarly, peers may send data back to the component via the server by directing their packets to the relayed IP address and port. (However, note that the server will only relay packets to/from a peer if there is an active permission for the peer's IP address; refer to the CreatePermission method for more information.)

This property is read-only and not available at design time.

Copyright (c) 2022 /n software inc. - All rights reserved.
IPWorks P2P 2020 .NET Edition - Version 20.0 [Build 8235]