Here you can find the source of parseSocketAddressAddr(SocketAddress socketAddress)
public static String parseSocketAddressAddr(SocketAddress socketAddress)
//package com.java2s; //License from project: Apache License import java.net.SocketAddress; public class Main { public static String parseSocketAddressAddr(SocketAddress socketAddress) { if (socketAddress != null) { final String addr = socketAddress.toString(); if (addr.length() > 0) { return addr.substring(1); }/*from w ww .jav a2 s . co m*/ } return ""; } }