Skip to content

Tag Archives: Java-Networking

The Java Socket API has been around for more than two decades. It has been maintained and updated over that period, but even the most… Read More
A socket is one end-point of a two-way communication link between two programs running on the network. Socket classes are used to represent the connection… Read More
URI stands for Uniform Resource Identifier. It identifies the resource either by name, or by location, or by both. It allows uniform identification of the… Read More
This article describes the basic client-server connection where a client connects, a server sends a message to the client and the client displays the message… Read More
A socket connection means the two machines have information about each other’s network location (IP Address) and TCP port. The class represents a Socket.… Read More
Here we are going to look at the approach of identifying the available and active ports used as a server. Approach: 1. Create an object… Read More
It is possible to send data from the server and receive a response from the client. Similarly, the client can also send and receive data… Read More
To create an application that uses UDP to establish connection between a client and server, we need to perform the following steps: Create a server… Read More
Program to implement Deffi-Hellman Algorithm in Client-Server Fashion. Prerequisite: Server Socket Programming, Diffie-Hellman algorithm The Diffie Hellman Algorithm is being used to establish a shared… Read More
Prerequisite: InetAddress getByName() : Returns the InetAddress of the given host. If the host is a literal IP address, then only its validity is checked.… Read More
Prerequisites: 1. Socket programming in Java 2. Bit Stuffing 3. Framing in data Link Layer Data is encapsulated in frames in the data link layer… Read More
TCP/IP-style networking provides a serialized, predictable, reliable stream of packet data. This is not without its cost, however. TCP includes algorithms for dealing with congestion… Read More
Checksum is an error-detecting technique that can be applied to message of any length. It is used mostly at the network and transport layers of… Read More
To get the size of file from server first you need to connect to the server using URL and HttpURLConnection Class. To get the size… Read More
Java Program to read and download webpage Steps: 1. Create a URL object and pass url as string to download the webpage. URL example =… Read More