Java Socket Programming (Client Server Program)

In this tutorial I have shared simple client server program example to explain java socket programming. In this example I will use Socket and ServerSocket classes for connection oriented socket programming. Since data is shared between server and client over network in the form of streams so DataInputStream and DataOutputStream classes are used. Java Socket Programming (Client Server Program) Server

Above code is used to create server which is running on localhost on port number 5000. Client

Since the server

Read more