📜  java socket获取客户端的ip地址 - Java代码示例
📅  最后修改于: 2022-03-11 14:52:44.313000             🧑  作者: Mango
代码示例1
String ip=(((InetSocketAddress) socket.getRemoteSocketAddress()).getAddress()).toString().replace("/","");