How to Run Step 1: Start the TCP Server
bash
cd TCPServer
dotnet runServer Startup Process:
- Enter port number (press Enter for default 8080)
- Server starts listening for connections
- Server displays "Waiting for client connections..."
- Press 'q' to quit the server Sample Output:
TCP Server Application
Enter port number (default 8080): 8080
Server started on port 8080
Waiting for client connections...
Step 2: Start TCP Client(s)
bash
# In a new terminal/command prompt
cd TCPClient
dotnet runClient Startup Process:
- Enter server IP address (press Enter for localhost)
- Enter server port (press Enter for default 8080)
- Client connects and shows available commands
- Start sending messages Sample Output:
TCP Client Application
Enter server IP address (default localhost):
Enter server port (default 8080):
Connected to server localhost:8080
Available commands:
- Send messages like: SetA-Two, SetB-Four, etc.
- Type 'help' to see this menu again
- Type 'quit' to disconnect and exit
- Type 'status' to check connection status