Validate public IP address for NAT

This function validates a public IP address on a NAT-configured server.

Authorizations:
query Parameters
ip
required
string <ipv4>

The local IPv4 address.

Example: ip=192.168.4.10

Responses

Response Schema: application/json
object
object

Request samples

whmapi1 --output=jsonpretty \
  nat_checkip \
  ip='192.168.4.10'

Response samples

Content type
application/json
{
  • "data": {
    • "checked_ip": "192.168.4.10"
    },
  • "metadata": {
    • "command": "nat_checkip",
    • "reason": "OK",
    • "result": 1,
    • "version": 1
    }
}