using System;
using System.Net;
class MainClass
{
public static void Main()
{
Console.WriteLine("The min port number is: {0}", IPEndPoint.MinPort);
Console.WriteLine("The max port number is: {0}\n", IPEndPoint.MaxPort);
}
}
Output
The min port number is: 0
The max port number is: 65535