adspace


How we can make simple java program for Server/Client Communication

Answer Posted / Varun Kumar Jaiswal

"A simple Java program for Server-Client communication can be created using Socket programming. Here is an outline of the server and client programs:
Server Side:
1. Create a server socket on a specific port.
2. Wait for the client connection request and accept it.
3. Communicate with the client using InputStream and OutputStream.
Client Side:
1. Create a socket connection to the server on a specific IP address and port.
2. Send data to the server using OutputStream and receive data from the server using InputStream."

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

No New Questions to Answer in this Category !!    You can

Post New Questions

Answer Questions in Different Category