public static final String getServerString(InetSocketAddress addr) {
    return addr.getHostString() + ":" + Integer.toString(addr.getPort());
  }
public static final String getServerString ( InetSocketAddress addr ) { return addr . getHostString ( ) + ":" + Integer . toString ( addr . getPort ( ) ) ; }
Create an unresolved server string (hostname:port) from an InetSocketAddress.