soquete java obter endereço IP do cliente

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