This repository contains a simple TCP client-server communication example in Java. The client sends messages to the server, and the server receives and processes these messages.
-
Port Change:
- Changed the port number from
2861
to5001
in both client and server code to avoid port conflicts.
- Changed the port number from
-
Error Handling:
- Updated the client code to handle the
NoSuchElementException
when the client sends the "BYE" message and closes the connection.
- Updated the client code to handle the
- Java Development Kit (JDK) installed
- Git installed
- Compile the server code:
javac TCPServer.java