Question

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.

Was it helpful?

Solution

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

nmap -p8080 IPaddress

OTHER TIPS

why you are pinging 00.00.00.00 ??

try this

ping localhost

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top