Simple TCP/IP Server Code


 * Simple TCP/IP Client - Server - Return to TCP/IP Client - Server Page

Here is the C# code for the server binary. Create a new Windows Forms application and add this code to the project. The frmMain is the main form for the application. This code is a modified version of the 101 C# example for the advanced TCP/IP server piece from MSDN. (Freely available)

frmMain.cs code:

UserConnection.cs Code: