Hi,

I have followed the article Asynchronous Socket Programming in C#: Part II
(link: http://www.codeguru.com/csharp/cshar...cle.php/c8781/)

I need to place the SocketServer application in a PC startup menu. So that once the SocketServer application is started after restarting the PC, the client machine can connect to server and communicate.

But I have a Client connection problem when SocketServer application luanches immediately after restarting the SocketServer application PC.

I mean when I press "Connect to Server" Button from the Client application Immediately after the SocketServer application launches after restarting that PC, The client is not connecting to server application immediately.

I need to wait at least 15 to 20 second to get the connection from Client PC to Server. But after that it works fine.


Only I face delay first time if I am trying to connect from client machine to server, When Server machine restarting.

How can I avoid this delay please help on this.