Hello,
I have a client<>server application.
It works well at 127.0.0.1
But when I try and host via IP, I'm not connecting.
I more than triple checked my port forwarding and windows firewall and
antivirus to be right.
I remember the last time I used a Netty server that I had to set the server's
host ip somewhere, but I can't even find 127.0.0.1 or localhost in a search to
change it over.
I'm using a slightly modified discard server.
Here is some possibly relevant code:
EventLoopGroup bossGroup = NioEventLoopGroup(1);
EventLoopGroup workerGroup = NioEventLoopGroup(2);
Try{
ServerBootstrap b = new ServerBootstrap();
b.group(bossGroup, workerGroup)
.channel(NioServerSocketChannel.class)
.childHandler(new ChannelInitializer<SocketChannel>()
{...})
.option(ChannelOption.SO_BACKLOG, 128)
.childoption(ChannelOption.SO_KEEPALIVE,true);
ChannelFuture f = b.bind(port).sync();
Do I need to place somewhere the IP address that I'm listening on?
Or what I am I missing.
--
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/ba243aa5-2891-42ef-89f7-07f7ae8cb158%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.