At last line of your code:
    ChannelFuture f = b.bind(port).sync();
you can use another version of bind method of ServerBootstrap Class, 
and pass an address as the first argument. Just like this:
        ChannelFuture f = b.bind("localhost", port).sync();

-- 
You received this message because you are subscribed to the Google Groups 
"Netty discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/netty/49577cba-08a9-4d53-ad3a-b3a1e744cfd5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to