Search code examples
tomcatcmdwebserverlocalping

CMD- How To Ping A Local Web server?


I am trying to make a batch file to ping my local web server and check wither its up or not
we have a tomcat web server its port is 8080.

  • when I try to ping 00.00.00.00:8080 it give me could not find local host
  • and when I try to ping 00.00.00.00:8080 it give me bad parameter and I cant use the www ping cause its local

I have even tried telnet but telnet need interaction to check for the web server status
and I need it to be automatic cause I will edit it to send mails with the server status.


Solution

  • I Used The Nmap command You should download and install it 1st from http://nmap.org

    nmap -p8080 IPaddress