getCachedPublicIp

public static Optional<String> getCachedPublicIp()

Exposes the cached public-IP detection result for diagnostic commands (e.g. /rspm status). Returns null if detection hasn't been attempted yet for this session, Optional.empty() if it was attempted but failed, or Optional.of(ip) on success.