linux - Telnet Port connectivity from one server to another through JSP -


hi all,

i want create jsp page ask user give source host , port , destination host , port. following combination of source , destination os possible

  • unix->unix/windows/zos windows-> unix/windows/zos zos -> unix/windows/zos

with these inputs want connect source server , fire command telnet $ip $port destination. if telnet connectivity successful should return success , else error.

i want create logic non-interactive should not require password login source checking telnet connectivity. there such library or mechanism available make feasible?

why not use apache commons net?

telnetclient telnet = new telnetclient();  try {   telnet.connect("rainmaker.wunderground.com", 3000); } catch(ioexception e) {   // failed } {   telnet.disconnect(); } 

Comments

Popular posts from this blog

javascript - jquery or ashx not working -

opencv - DataType<cv::detail::deriv_type>::depth what is it used for -

python 3.x - Mapping specific letters onto a list of words -