Write the Java socket program for the Server. (class name: Server_12345) And Write the Java socket program for the Client. (class name: Client_12345) Execute the following steps: Step 1: Run the Java program of Server Step 2: Run the Java program of Client

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question
100%
Write the Java socket program for the Server. (class name: Server_12345) And Write the Java socket program for the Client. (class name: Client_12345) Execute the following steps: Step 1: Run the Java program of Server Step 2: Run the Java program of Client I need all code and screenshot like example output below :
Sample output 1 (Client) :
Connected to server
Enter the message to the server: Salam
Reply from Server: OK
Enter the message to the server: How are you?
Reply from Server: OK
Enter the message to the server: Ma salama
Reply from Server: hello.png
Reply from Server: L L
Sample output 2 (Client) :
Connected to server
Enter the message to the server: Hi
Reply from Server: OK
Enter the message to the server: asi i i
Reply from Server: OK
Enter the message to the server: Yes Please
Reply from server: OK
Enter the message to the server: Ma Salama
Reply from Server: hello.png
Reply from Server: L L
Sample output 1 (Server) :
Connected to client socket number 13
Client sent message: Salam
Message Count 1
client sent message: How are you?
Message Count 2
Client sent message: Ma Salama
Message count 3
Sample output 2(Server) :
Connected to client socket number 13
client sent message: Hi
Message Count 1
Client sent message: ai is
Message Count 2
Client sent message: Yes Please
Message Count 3
Client sent message: Ma Salama
Message Count 4
Transcribed Image Text:Sample output 1 (Client) : Connected to server Enter the message to the server: Salam Reply from Server: OK Enter the message to the server: How are you? Reply from Server: OK Enter the message to the server: Ma salama Reply from Server: hello.png Reply from Server: L L Sample output 2 (Client) : Connected to server Enter the message to the server: Hi Reply from Server: OK Enter the message to the server: asi i i Reply from Server: OK Enter the message to the server: Yes Please Reply from server: OK Enter the message to the server: Ma Salama Reply from Server: hello.png Reply from Server: L L Sample output 1 (Server) : Connected to client socket number 13 Client sent message: Salam Message Count 1 client sent message: How are you? Message Count 2 Client sent message: Ma Salama Message count 3 Sample output 2(Server) : Connected to client socket number 13 client sent message: Hi Message Count 1 Client sent message: ai is Message Count 2 Client sent message: Yes Please Message Count 3 Client sent message: Ma Salama Message Count 4
Expert Solution
steps

Step by step

Solved in 3 steps

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY