monkeyWie / proxyee

HTTP proxy server,support HTTPS&websocket.MITM impl,intercept and tamper HTTPS traffic.
MIT License
1.53k stars 573 forks source link

如何获取客户端IP? #88

Closed tsingheng closed 4 years ago

tsingheng commented 4 years ago

是否有办法获取到客户端IP?

monkeyWie commented 4 years ago

可以啊

String ip = ((InetSocketAddress) clientChannel.localAddress()).getAddress().toString();