public InetAddress getConnectingIp() { // Try a target system, because it is more accurate, and it does not require full connectivity if ((!StringUtil.isEmpty(testHost)) && (testPort > 0)) { return NetworkAddressUtil.getExternalAddressThroughTCPConnect(testHost, testPort); } return null; } }