I’m trying to make a script that telnet ip port to see if the server is up or down. (like how you do in window command prompt. cmd [enter] => telnet 11.111.11.11 200 (ip& port)and if the the connection is successful, program will return true else false. I need this code to be really efficient since this function will go into the forloop where I do all the displays on the website for each ip. Thnx in advance
P.S
Ops I meant java/jsp my bad haha
1 Answer