1、netty4.x中获取远程请求 ip
InetSocketAddress insocket = (InetSocketAddress) ctx.channel().remoteAddress(); ip = insocket.getAddress().getHostAddress();
1、netty4.x中获取远程请求 ip
InetSocketAddress insocket = (InetSocketAddress) ctx.channel().remoteAddress(); ip = insocket.getAddress().getHostAddress();