HTTPS port active status

I need to write a java service to make sure one of the port on the server is active/inactive…

Do anybody of you guys know a windows command to ping a port to know its active status? (I just do not want to just ping a box)


To know the status of the port,subscribe to Port Status Event and invoke a service which takes portStatus specification.


Is there any built-in service??

Also, I need to ping the port from a wM box to a non-wM (mainframe) box.

In the Java service, maybe you can try
public Socket(InetAddress address,
int port)
throws IOException
If the code throws an IOException, it means that port is inactive.


You can also use telnet command with the particular IP and port .If it is down it will give a exception else it is active .