log4net SDK Reference |

# TelnetAppender.Port Property

Gets or sets the TCP port number on which this TelnetAppender will listen for connections.

[Visual Basic]
Public Property Port As Integer
[C#]
public int Port {get; set;}

#### Property Value

An integer value in the range MinPort to MaxPort indicating the TCP port number on which this TelnetAppender will listen for connections.

#### Remarks

The default value is 23 (the telnet port).

#### Exceptions

Exception Type | Condition
--- | ---
ArgumentOutOfRangeException | The value specified is less than MinPort or greater than MaxPort.

#### See Also

TelnetAppender Class | log4net.Appender Namespace