Friday, November 21, 2008

How do you know an internal web server is up or down ?

Nowadays, setting up a web server for internal use in a company intranet is very common. But, sometimes when your browser reports that you cannot connect to the main page of your web server, what can you do ?

Here is some simple diagnostic steps (assuming that the web server IP is 10.20.30.40) :

1. Ensure that your PC can reach the web server machine

Try to ping the machine using :
ping 10.20.30.40
If you cannot ping the machine, maybe the machine is not up or may be there is a firewall to block the access to the machine.

If you can ping the machine, the machine is proved to be up and running and is connected to the network.

2. telnet using port 80

If you can ping the machine, the next step is to check whether you can visit the port 80 of the server machine. Type this command :
telnet 10.20.30.40 80
(Port-80 is the default web server listening port. If your server uses another port number, just replace 80 with that port number.)

If the telnet command reports any connection error like :
Connecting To 10.20.30.40... Could not open connection to the host, on port 80 Connect failed
, most probably the web server software is not up or there is a firewall blocking the port 80.

If you see the screen black out :
, congratulation, the web server is probably up and running !

To double confirm, just type this command :
get
If you see something like
<html> ..... .... ..... ...... ..... ............. .... .... Connection to host lost.
and then quit back to the command prompt, the web server is actually up and running. She try to send you a HTML pages.


3. Check your own PC

Steps 1 and 2 confirm that the web server is up and running. If your browser still cannot display the HTML page, the problem must be in the client side, i.e. your own PC.

Here are some suggested actions:

  • Check the personal firewall
  • Check the browser setting / options (e.g. check pop-up blocking)
  • If possible, try another browser
  • When Java related, look at Java console

Disclaimer :
All coding/commands in this article is distributed "as is" and is UNSUPPORTED.
NO WARRANTY of any kind is expressed or implied.
You use AT YOUR OWN RISK.
The author will not be liable for any data loss,damages, and loss of profits or any other kind of tangible or intangible loss while using or misusing this coding/commands.


No comments:

Duplicate Open Current Folder in a New Window

Sometimes after I opened a folder in Win7, I would like to duplicate open the same folder again in another explorer window. Then, I can ope...