SFTP (Secure File Transfer Protocol) is a secure way to transfer files between a client and a server. It is similar to FTP (File Transfer… Read More
Tag Archives: Java-Networking
Prerequisites: Socket Programming in Java File Handling in Java This article describes a one-way client and Server Setup where a client connects, and sends the… Read More
Prerequisite: Socket Programming in Java First, we understand the basics of java socket programming. Java Socket is used to communicate between two different JREs. Java… Read More
A socket is an End-Point of 2 sided or two-way communication link between two PCs running on the network. For Example: If there are two… Read More
HttpServelt is an abstract class, it comes under package ‘javax.servlet.http.HttpServlet‘ . To create a servlet the class must extend the HttpServlet class and override at… Read More
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 java.net.Socket 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 the connection between a client and server, we need to perform the following steps: Create a… Read More
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