Hi,
i
got error in c# windows application.
private
static void ListenForClients()
{
tcpListener.Start();
while (true)
{
try
{
//
Blocks until a client has connected to the server
TcpClient client = tcpListener.AcceptTcpClient();
// Create a thread to handle communication
// with connected client
Thread clientThread =
new Thread(new ParameterizedThreadStart(HandleClientComm));
clientThread.Start(client);
}
}
Error:
------
Only
one usage of each socket address (protocol/network address/port) is
normally permitted
Error Line:
-----------
private static void ListenForClients()
{
----->> tcpListener.Start();