i would like look into the particular port is running on particular server.

example:

i'm running tomcat server on port number 8080, if this server running it will require the 8080 port number, however i scheduled the tomcat server at predefined time. in this time around the 8080 port number takes by another process &lifier it's not launched. my tomcat is restarted, it awaiting a time period &lifier tomcat is began another port. then, how do i discover the tomcat server is running or otherwise?

Thanks, Murali