The Nettskjema v2 API requires a token to be registered with IP addresses. This function returns the current IP address.

nettskjema_find_ip(version = c("v4", "v6"))

Arguments

version

string. ip version to check. one of either "v4" or "v6".

Details

If you are working through a VPN, the IP address will not be returned as the Nettskjema API sees it. We are looking for solutions to this.

Examples

nettskjema_find_ip()
#> Your current IPv4 address is: #> 20.114.23.118