SSHTools Knowledgebase
Information and FAQs about SSHTools products
  
Search  
   
Browse by Category
SSHTools Knowledgebase .: J2SSH Maverick .: FAQs .: Does J2SSH Maverick support IPv6?

Does J2SSH Maverick support IPv6?

The Maverick API is transport independent and therefore will support IPv6 as long as the java runtime supports it. If you construct a socket in java that has been created with an IPv6 Inet6Address then you can pass this into Maverick using the com.sshtools.net.SocketWrapper transport.

InetAddress addr = Inet6Address.getByName("::1");
Socket sock = new Socket(addr, 22);

SshConnector con = SshConnector.getInstance();
SshClient ssh = con.connect(new SocketWrapper(sock), "lee);

Detailed information on Sun's IPv6 support can be found here http://java.sun.com/j2se/1.5.0/docs/guide/net/ipv6_guide/index.html


How helpful was this article to you?

User Comments

Add Comment
No comments have been posted.


powered by Lore
© 2008 SSHTools Ltd. All Rights Reserved