<HTML><HEAD><META content="text/html; charset=UTF-8" http-equiv="Content-Type"></HEAD><BODY>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:<BR>
<BR>
http://download.oracle.com/javase/6/docs/technotes/guides/net/ipv6_guide/index.html<BR>
<BR>
HTH<BR>
<BR>
Bob McConnell wrote:<BR>
> How do I tell Netty to listen for TCP connections on both IPv4 and IPv6?<BR>
> I am currently getting this exception when I try to bind a server to<BR>
> local address "::".<BR>
><BR>
> -----8<-------------------------------------------------------------<BR>
> Exception during socket startup for /0:0:0:0:0:0:0:0:2001.<BR>
> Exception: java.net.SocketException:<BR>
> Address family not supported by protocol family: bind. Stack trace:<BR>
> sun.nio.ch.Net.bind(Native Method)<BR>
> sun.nio.ch.ServerSocketChannelImpl.bind(Unknown Source)<BR>
> sun.nio.ch.ServerSocketAdaptor.bind(Unknown Source)<BR>
> org.jboss.netty.channel.socket.nio.NioServerSocketPipelineSink.bind(NioS<BR>
> erverSocketPipelineSink.java:148)<BR>
> org.jboss.netty.channel.socket.nio.NioServerSocketPipelineSink.handleSer<BR>
> verSocket(NioServerSocketPipelineSink.java:100)<BR>
> org.jboss.netty.channel.socket.nio.NioServerSocketPipelineSink.eventSunk<BR>
> (NioServerSocketPipelineSink.java:74)<BR>
> org.jboss.netty.channel.Channels.bind(Channels.java:671)<BR>
> org.jboss.netty.channel.AbstractChannel.bind(AbstractChannel.java:170)<BR>
> org.jboss.netty.bootstrap.ServerBootstrap$Binder.channelOpen(ServerBoots<BR>
> trap.java:342)<BR>
> org.jboss.netty.channel.Channels.fireChannelOpen(Channels.java:190)<BR>
> org.jboss.netty.channel.socket.nio.NioServerSocketChannel.<init>(NioServ<BR>
> erSocketChannel.java:80)<BR>
> org.jboss.netty.channel.socket.nio.NioServerSocketChannelFactory.newChan<BR>
> nel(NioServerSocketChannelFactory.java:142)<BR>
> org.jboss.netty.channel.socket.nio.NioServerSocketChannelFactory.newChan<BR>
> nel(NioServerSocketChannelFactory.java:90)<BR>
> org.jboss.netty.bootstrap.ServerBootstrap.bind(ServerBootstrap.java:275)<BR>
> -----8<-------------------------------------------------------------<BR>
><BR>
> The application is running on MS-Windows Server 2008R2 Standard, SP1.<BR>
> Netty is version 3.1.5.GA.<BR>
> JRE build 1.6.0_29-b11.<BR>
><BR>
> Thank you,<BR>
><BR>
> Bob McConnell<BR>
><BR>
><BR>
> _______________________________________________<BR>
> netty-users mailing list<BR>
> netty-users@lists.jboss.org<BR>
> https://lists.jboss.org/mailman/listinfo/netty-users</BODY></HTML>