I believe IPv6 support in NIO is added to Java 7 only. So it won't work in Java 6.
Please feel free to correct me if I'm wrong. Regards, Sai. On Fri, Jul 13, 2012 at 9:32 AM, BRESCIANI, MARCO (MARCO) < [email protected]> wrote: > Hi all, > I'm getting crazy with running SSHD on a Win7 64bit PC, with JVM 6u33 > 64bit. > > I'm actually not (yet) sure if it's a problem on my PC (right after this > email > I'll ask colleagues to check on theirs) but this is the situation: > > I've configured and ran the SSHD and Apache FtpServer on my PC, on the > usual > 22 and 21 ports with no issues. It seems, anyway, that I cannot reach those > servers through IPv6 networking, not even from my PC itself! > I can use [::1] or localhost and they work even by disabling the Windows > IPv4 stack; anyway, using my whole IPv6 address it does not work. > > It there something I miss? Here below, a brief copy-paste of meaningful > code > (more or less similar for FtpServer: > > > this.sshServer = SshServer.setUpDefaultServer(); > this.sshServer.setPort(SFtp.PORT); > this.sshServer.setReuseAddress(true); > > if (SecurityUtils.isBouncyCastleRegistered()) { > this.sshServer.setKeyPairProvider(new > PEMGeneratorHostKeyProvider(keyGen, > "RSA", 2048)); > } else { > this.sshServer.setKeyPairProvider(new FileKeyPairProvider(new String[] > { > keyGen })); > } > > this.sshServer.setPasswordAuthenticator(new > CustomPasswordAuthenticator(this.username, this.password)); > > > this.sshServer.setSubsystemFactories(Collections.<NamedFactory<Command>>singletonList(new > SftpSubsystem.Factory())); > > this.sshServer.setFileSystemFactory(new > CustomFileSystemFactory(SFtp.USER_HOME)); > > this.sshServer.start(); >
