How to check which web server is running on a domain

Sometimes we must know what web server is running on a particular domain. Usually web hosts should be able to tell a client this, but if the client is afraid to ask, there is a way to ask the web server directly for this information.

Just to clarify: the web server is the process that serves files (HTML, PHP, ASP, images, etc) from a remote machine to your local web browser. The most likely choices in this day and age (2017) are Apache, NGINX or IIS. The latter is used by Windows servers, and the two former are used by Linux servers. There are other web servers too, such as lighttpd, but they’re used less commonly.

By asking the web server for this information, we can tell exactly who’s serving those files.

How to ask the Web Server

Let’s open a Terminal or Command Line Prompt window and utilise the good old fashioned Telnet protocol. Replace with the actual domain in question:

This has opened a channel to the web server through which we can now send a command – much like a web browser would send a request for a file. Let’s send him this:

As a response, we may be getting something like this:

The response may take a few seconds, especially if this results in a timeout or a bad request like in our example. There may also be other text, perhaps some HTML code. The main info we were after is presented next to the word “Server”, in this case it’s an NGINX web server at work there.

An Apache web server would perhaps give us a response like this:

In this case we’re even being told which version web server and what operating system it’s running on.

And finally, for completion, an IIS web server may say something like this:

This web server appears to be running Microsoft IIS with ASP. We can assume the operating system to be most likely Windows Server.


Note that the information we get back may be misleading though: on Plesk servers for example, BOTH Apache and NGINX can be used to serve a web page. In this scenario, the above test will return NGINX, even though the site is served by Apache first and only distributed by an NGINX proxy.

About Jay Versluis

Jay is a medical miracle known as a Super Survivor. He runs two YouTube channels, five websites and several podcast feeds. To see what else he's up to, and to support him on his mission to make the world a better place, check out his Patreon Campaign.

3 thoughts on “How to check which web server is running on a domain

  1. Thanks for sharing. Earlier I used ping command in terminal to check whether my webserver is responding to requests or not. Now I get the response itself with telnet.

Add your voice!