Java Socket Get IP -адрес клиента

String ip=(((InetSocketAddress) socket.getRemoteSocketAddress()).getAddress()).toString().replace("/","");
Confused Cheetah