code: public static function isNetworkExposedAddress($socketAddress)
      {
          if (self::isUnixAddress($socketAddress)) {
              return false;
          }
          if (strpos($socketAddress, '127.0.0.1') !== false || strpos($socketAddress, '[::1]') !== false) {
              return false;
          }
  
          return true;
      }
docs: @param string $socketAddress
  
  @return bool