Computer Science, asked by JESWANTHSai9497, 1 year ago

Write client server program the client send any string and server reads the string ,find no of characters and digit and sends it back to client.

Answers

Answered by gowthamcrontecpausiq
0

hey

Java Program to Send a Message from Client to Server and Receive a Response Back Using Socket Programming

This Java Program

1. Make Use of Java Socket Programming

2. It starts a server which will be always running listening to a port 25000 (Server.java)

3. Client (Client.java) sends a number (message) to the server

4. Server receives this number and multiplies it by 2

5. Server (Server.java) sends back the result (message) to the client (Client.java)

6. In case the number sent by the client was not a proper number, server (Server.java) sends back the message “Please send a proper number” to the client (Client.java)

Similar questions