LocalPort Property

The UDP port in the local host where the class binds.

Syntax

public int getLocalPort();
public void setLocalPort(int localPort);

Default Value

0

Remarks

This property specifies which UDP port in the local host the class should bind to when Active is set to True.

If this property is 0 (default), the system will choose a port at random. The chosen port will be reflected by this property after setting Active to True.

This property cannot be changed while Active is True; attempting to do so will generate an error.

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