Netty實戰四:netty獲取客戶端IP

import io.netty.channel.ChannelHandlerContext; //ChannelHandlerContext chc InetSocketAddress ipSocket = (InetSocketAddress)chc.channel().remoteAddress(); String clientIp = ipSocket.getAddre
相關文章
相關標籤/搜索