Hi,
i am new to network programing.i would like to connect to router.can any one please explain the procedure to connect router using telnet or ssh or http or snp.
Thanks & Regards,
Nagaraju
I know Life is very Tough...But I AM TOUGHER
SCJP 1.5
That depends on what interface the router makes available. Then it's just a matter of sending the commands. Again, probably hardware-dependent.
UPNP may be an option as well, again, depending on your hardware.
Joe Ess wrote:That depends on what interface the router makes available. Then it's just a matter of sending the commands. Again, probably hardware-dependent.
Hi Joe Ess,
thanks for your information.on my router i can connect using telnet or ssh protocal.for connection my thinking is
1)create a Serversocket
2)using UrlConnect
we can do it. isn't it?
any further information appriciated
Thanks in advance,
Nagaraju.
I know Life is very Tough...But I AM TOUGHER
SCJP 1.5
Are you trying to write Java code that connects to the router and then issues commands to it programmatically? If so, neither a ServerSocket, nor the URLConnection class will be of much help.
The Apache Commons Net library contains a Telnet client library you could use.
Joe Ess wrote:That depends on what interface the router makes available. Then it's just a matter of sending the commands. Again, probably hardware-dependent.
Hi Joe Ess,
thanks for your information.on my router i can connect using telnet or ssh protocal.for connection my thinking is
1)create a Serversocket
2)using UrlConnect
we can do it. isn't it?
any further information appriciated
Thanks in advance,
Nagaraju.
You can either:
1. Implement telnet using Socket, since it seems you are wanting client functionality
2. Use a telnet or ssh library.
"Computer science is no more about computers than astronomy is about telescopes" - Edsger Dijkstra