UdpAppender LocalPort Property Apache log4net™ SDK Documentation
Gets or sets the TCP port number from which the underlying OnlineUdpClient will communicate.

Namespace: log4net.Appender
Assembly: log4net (in log4net.dll) Version: 1.2.15.0 (1.2.15.0)
Syntax

public int LocalPort { get; set; }

Property Value

Type: OnlineInt32
An integer value in the range OnlineMinPort to OnlineMaxPort indicating the TCP port number from which the underlying OnlineUdpClient will communicate.
Exceptions

Remarks

The underlying OnlineUdpClient will bind to this port for sending messages.

Setting the value to 0 (the default) will cause the udp client not to bind to a local port.

See Also