Skip to content

Tag Archives: Java-Networking

Program to implement Diffie-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: InetAddressgetByName() : Returns the InetAddress of the given host. If the host is a literal IP address, then only its validity is checked. Fetches… 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… 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
The 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… 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
Checking Internet connectivity using Java can be done using 2 methods: 1) by using getRuntime() method of java Runtime class. 2) by using methods of… Read More
In article Pinging an IP address in Java, we have discussed how to ping an IP address using java.net.InetAddress.isReachable() method. In this post we will… Read More
PING stands for Packet InterNet Groper in computer networking field. It’s a computer network administration software used to test the reachability of a host on… Read More
Prerequisites : Introducing threads in socket programming, Multi-threaded chat Application | Set 1 This article gives the implementation of client program for the multi-threaded chat… Read More
Prerequisites : Introducing threads in socket programmingIn the above article, a simple date time server was created which handled multiple user requests at the same… Read More
Prerequisites : Socket Programming in Java This article assumes that you have basic knowledge of socket programming in java and the basic details of client-server… Read More
This is a utility class for HTML form decoding. It just performs the reverse of what URLEncoder class do, i.e. given an encoded string, it… Read More
This class is a utility class for HTML form encoding. Encoding makes the form of URL more reliable and secure. When the user request is… Read More