All Products
Document Center

Elastic Compute Service:View the IP address of an ECS instances

Last Updated:Apr 01, 2024

This topic describes how to view the IP addresses of an Elastic Compute Service (ECS) instance on the ECS console, including public IP addresses, elastic IP addresses (EIPs), primary private IP addresses, secondary private IP addresses, and IPv6 addresses.


You can go to the Instance Details tab of an ECS instance on the ECS console to view the IP address of the instance.


You can also choose Network & Security > Elastic Network Interfaces in the left-side navigation pane to view the private IP address and IPv6 address of an instance.

  1. Log on to the ECS console.

  2. In the left-side navigation pane, choose Instances & Images > Instances.

  3. In the top navigation bar, select the region and resource group to which the resource belongs. 地域

  4. On the Instances page, find the target instance, and click the instance name in the Instance ID/Name column. On the Instance Details page, view the IP addresses of the instance.

    • IP addresses in the Basic Information section:

      • Public IP: 47.98.XX.XX

      • EIP: 121.41.XX.XX

      • Primary Private IP Address: 192.168.XX.XX

    • IP addresses in the Network Information section:

      • Secondary Private IP Address: 192.168.XX.XX, 192.168.XX.XX

      • IPv6 Address: 2408:XXXX:325:a216:95f1:3dd9:6640:8b9e


    If your instance does not have a static public IP address, secondary private IP address, IPv6 IP address, or EIP, no IP addresses will be displayed for the corresponding parameters.


After viewing the IP addresses, you may need to perform the following operations:

  • Modify the security group rules of the ECS instance. For more information, see Modify a security group rule.

  • Configure the secondary elastic network interface (ENI) attached to the ECS instance to identify IP addresses. For more information, see Configure a secondary ENI.

  • Add a TCP listener to the Classic Load Balancer (CLB) instance to forward TCP requests from clients. For more information, see Add a TCP listener.

  • Verify that the domain name is correctly resolved, or configure a DNS record to map the domain name to the correct IP address. For more information, see Public Authoritative DNS Resolution.