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
Post a Comment