Write an echo client and an echo server program


Assignment: Java Program-Network

You are required to write an Echo Client and an Echo Server program. The echo client communicates with the echo server using UDP. The programs should fulfill the following requirements:

1. Client:

a. Prompts the user to input the IP address, port number of the server, and a message to send to that server.

b. Sends the message to the server.

c. Display the server replay by using the same socket.

d. Displays an error message if the IP address or port number were entered incorrectly.

e. The client should be able to send multiple messages to the server. You may need to consider using the infinite loop as we discussed in the class.

2. Server

a. Receives the message from the client.

b. Change the letters of the message to "capital letters" and send it back to the client by using the same socket.

c. The server should be able to send multiple messages to the client. You may need to consider using the infinite loop as we discussed in the class.

3. Note:

a. Java language should be used.
b. Do NOT hard code the server address and port number in your source code.
c. Your program should work under MS-DOS window (command line). You need to compile your code by using JavaC.

Format your assignment according to the give formatting requirements:

1. The answer must be double spaced, typed, using Times New Roman font (size 12), with one-inch margins on all sides.

2. The response also includes a cover page containing the title of the assignment, the course title, the student's name, and the date. The cover page is not included in the required page length.

3. Also include a reference page. The references and Citations should follow APA format. The reference page is not included in the required page length.

Attachment:- Template.rar

Request for Solution File

Ask an Expert for Answer!!
JAVA Programming: Write an echo client and an echo server program
Reference No:- TGS03187804

Expected delivery within 24 Hours