Enable IPv6

"이희승 (Trustin Lee)" trustin at gmail.com
Wed Oct 26 20:22:04 EDT 2011


Could you ensure that you are using the latest stable Netty and JDK 
version? You might also need to play with the IPv6 related flags in JVM:

http://download.oracle.com/javase/6/docs/technotes/guides/net/ipv6_guide/index.html

HTH

Bob McConnell wrote:
 > How do I tell Netty to listen for TCP connections on both IPv4 and IPv6?
 > I am currently getting this exception when I try to bind a server to
 > local address "::".
 >
 > -----8<-------------------------------------------------------------
 > Exception during socket startup for /0:0:0:0:0:0:0:0:2001.
 > Exception: java.net.SocketException:
 > Address family not supported by protocol family: bind. Stack trace:
 > sun.nio.ch.Net.bind(Native Method)
 > sun.nio.ch.ServerSocketChannelImpl.bind(Unknown Source)
 > sun.nio.ch.ServerSocketAdaptor.bind(Unknown Source)
 > org.jboss.netty.channel.socket.nio.NioServerSocketPipelineSink.bind(NioS
 > erverSocketPipelineSink.java:148)
 > org.jboss.netty.channel.socket.nio.NioServerSocketPipelineSink.handleSer
 > verSocket(NioServerSocketPipelineSink.java:100)
 > org.jboss.netty.channel.socket.nio.NioServerSocketPipelineSink.eventSunk
 > (NioServerSocketPipelineSink.java:74)
 > org.jboss.netty.channel.Channels.bind(Channels.java:671)
 > org.jboss.netty.channel.AbstractChannel.bind(AbstractChannel.java:170)
 > org.jboss.netty.bootstrap.ServerBootstrap$Binder.channelOpen(ServerBoots
 > trap.java:342)
 > org.jboss.netty.channel.Channels.fireChannelOpen(Channels.java:190)
 > org.jboss.netty.channel.socket.nio.NioServerSocketChannel.<init>(NioServ
 > erSocketChannel.java:80)
 > org.jboss.netty.channel.socket.nio.NioServerSocketChannelFactory.newChan
 > nel(NioServerSocketChannelFactory.java:142)
 > org.jboss.netty.channel.socket.nio.NioServerSocketChannelFactory.newChan
 > nel(NioServerSocketChannelFactory.java:90)
 > org.jboss.netty.bootstrap.ServerBootstrap.bind(ServerBootstrap.java:275)
 > -----8<-------------------------------------------------------------
 >
 > The application is running on MS-Windows Server 2008R2 Standard, SP1.
 > Netty is version 3.1.5.GA.
 > JRE build 1.6.0_29-b11.
 >
 > Thank you,
 >
 > Bob McConnell
 >
 >
 > _______________________________________________
 > netty-users mailing list
 > netty-users at lists.jboss.org
 > https://lists.jboss.org/mailman/listinfo/netty-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/netty-users/attachments/20111026/91b8607f/attachment.html 


More information about the netty-users mailing list