netty获取ip
InetSocketAddress insocket = (InetSocketAddress) ctx.channel().remoteAddress();String clientIP = insocket.getAddress().getHostAddress();System.out.println(clientIP);
·
InetSocketAddress insocket = (InetSocketAddress) ctx.channel().remoteAddress();
String clientIP = insocket.getAddress().getHostAddress();
System.out.println(clientIP);更多推荐



所有评论(0)