Skip to main content

IPProvider

public class IPProvider

↳ package com.onekosmos.blockid.sdk.BIDAPIs.publicip;


The IPProvider class provides a mechanism for fetching and caching the user's IP address from a remote API. This class ensures that the IP address is regularly updated in the background, and it provides a simple interface for obtaining the current IP address from the cache.

By default IP Address cache time interval is 10 minutes, between automatic refreshes of the IP address from the API.

Method Summary

TypeMethodDescription
StringgetIPAddress()Returns the current IP address from the cache.