This project demonstrates basic socket programming in Java, implementing a simple client-server communication system.
- The Server listens on port
3000
and waits for a client connection. - The Client connects to the server and sends messages.
- The server reads and prints messages from the client.
- The client can terminate communication by sending "Bye".
- Java Development Kit (JDK) installed
- A Java IDE or command-line tools
javac server.java client.java
java server
java client
- Once the client connects, type messages in the client console.
- The server will display received messages.
- Type "Bye" to close the connection.
├── server.java # Server implementation
├── client.java # Client implementation
└── README.md # Documentation
- Ensure both server and client are running on the same network.
- The server must be started before the client.
This project is open-source. You are free to modify and distribute it as needed.