Hi,
I was also working to create a Client Server Application. But I'm getting connection error after sometimes. (No regularity)

Here is the sample code from TCP/IP V-3 by R.Stevens