To obtain the private IP address of a cloud server instance, you can follow these steps:
Alternatively, you can use command-line tools if you have access to the server:
ip addr show or ifconfig to list network interfaces and their assigned IP addresses. The private IP is usually under eth0 or a similar interface.ipconfig in Command Prompt to display network details, including the private IP under the relevant adapter.For example, in Tencent Cloud, after logging into the console, go to the CVM (Cloud Virtual Machine) section, select your instance, and check the "Basic Information" tab for the private IP. If you're managing instances via the Tencent Cloud CLI (tccli), you can use the command:
tccli cvm DescribeInstances --InstanceIds <instance-id>
The response will include the private IP address under the PrivateIpAddresses field.
If you're using Tencent Cloud's Virtual Private Cloud (VPC), the private IP is assigned within the subnet range you configured for the instance.