Here you can find the source of getConnString(SocketAddress address)
static public String getConnString(SocketAddress address)
//package com.java2s; //License from project: Apache License import java.net.SocketAddress; public class Main { static public String getConnString(SocketAddress address) { String addrStr = address.toString(); if (addrStr.contains("/")) { addrStr = addrStr.substring(addrStr.indexOf("/") + 1); }/*from w w w . j av a 2s . c o m*/ return addrStr; } }