DotMSN |

# MSNSLPHandler.GetNextDirectConnectionPort Method

Returns a port number which can be used to listen for a new direct connection.

[Visual Basic]
Overridable Protected Function GetNextDirectConnectionPort() As Integer
[C#]
protected virtual int GetNextDirectConnectionPort();

#### Return Value

#### Remarks

Throws an SocketException when no ports can be found.

#### See Also

MSNSLPHandler Class | XihSolutions.DotMSN.DataTransfer Namespace