Header Ads

Java Program to create an Echo Server (Chat Server)

Problem Statement:-

Create a Chat Server/ Echo Server with the help of socket programming use client server architecture.


Basic Information:-

Java Socket programming is used for communication between the applications running on different JRE.
Java Socket programming can be connection-oriented or connection-less.
Socket and ServerSocket classes are used for connection-oriented socket programming and DatagramSocket and DatagramPacket classes are used for connection-less socket programming.
The client in socket programming must know two information:
  1. IP Address of Server, and
  2. Port number
Codes:-
Server.java
Client.java

Output:-

No comments:

Powered by Blogger.