How we can make simple java program for Server/Client Communication
Answer / 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 |
What is the main difference between Client side Java Script and and Server side Java Script how actually they run on both side with Example.
What is meant by TCP, IP, UDP?
Is there any difference between TCP/IP and TCP?
What is a client tester?
What is an http redirector?
What is the use of network interface?
What are the advantages and disadvantages of sockets?
What is a port?
how to know which version of java is running on ur computer using command prompt?
What is meant by time-slicing?
Tell me about networking classes and interfaces.
1 Answers Akamai Technologies,
What is cookies in networking ?
1 Answers Akamai Technologies,