code: public static String getCurrentRemoteConnectionLink(){
  
          if(!APILookupUtility.isLocal()) try{
  
              return URLEncoder.encode(APILookupUtility.getCurrentRemoteInstance().getHost(), "UTF-8") +
                              COLON_URL_ENCODED +
                              APILookupUtility.getCurrentRemoteInstance().getPort();
  
          }catch (IllegalStateException | UnsupportedEncodingException ignored){/*null be returned*/}
  
          return null;
  
      }
docs: Returns current remote connection link, that
  contains connection host and port. (Example : `localhost:9401`).
  Returns null, of current connection is local
  @return current remote connection link or null, if current connection is local