cPanel WHM icon

cPanel WHM

Full cPanel WHM API — all 622 operations across Accounts, DNS, Mail, SSL, Backups, Databases and more

Actions262

IP & Network → Return public IP address of private IP address

AI-generated

Summary

Retrieve the public IP address corresponding to a given private or public IP address by querying the cPanel WHM API.

Inputs

  • Ip (required) — A valid public or private IP address to query.

Output shape

a single record containing the public IP address if found

The output includes the API response for the IP query. Errors returned as part of the API response are handled and surfaced as node errors.

Examples

Example 1: User provides a private IP to find its corresponding public IP.

Set 'Ip' to the private IP address; the node returns its public IP equivalent from the WHM API.

Links

Discussion