Determine What Web Server Is Installed on a Remote Machine

Determine What Web Server Is Installed on a Remote Machine

Using Java, you can easily find out what Web server is installed on a remote machine. Just open a URLConnection to the remote host and parse the header for the “Server” entity, which will give the name of the Web server.

 //pass the site address as command line argument//eg:- java http://www.javasoft.comimport java.io.*;import java.net.*;public class findServer{    public static void main(String a[])    {        try        {            URL u=new URL(a[0]);            System.out.println("Web server of site"+a[0]+"is -"+u.openConnection().getHeaderField("Server"));        }        catch(Exception e)        {            System.out.println(e);        }    }}
Share the Post:
data observability

Data Observability Explained

Data is the lifeblood of any successful business, as it is the driving force behind critical decision-making, insight generation, and strategic development. However, due to its intricate nature, ensuring the

Heading photo, Metadata.

What is Metadata?

What is metadata? Well, It’s an odd concept to wrap your head around. Metadata is essentially the secondary layer of data that tracks details about the “regular” data. The regular