This document describes how to obtain the public IP address of a CVM instance.
NoteThe public IP address is mapped to the private IP address through NAT. Therefore if you view the network interface attributes from within the instance (such as by using
ifconfig (Linux)
oripconfig (Windows)
commands), the public IP address is not displayed. To obtain the public IP from within the instance, you need to check the instance metadata.
Was this page helpful?