This function returns the public IP address for a specified public or private IP address. You can use this function to determine the system's main public IP address, especially for systems that use a 1:1 NAT configuration.
HTTP Request was successful.
object | |
object |
whmapi1 --output=jsonpretty \ get_public_ip \ ip='192.0.2.0'
{- "data": {
- "public_ip": "192.0.2.0"
}, - "metadata": {
- "command": "get_public_ip",
- "reason": "OK",
- "result": 1,
- "version": 1
}
}