This topic was translated by AI and is currently in queue for revision by our editors. Alibaba Cloud does not guarantee the accuracy of AI-translated content. Request expedited revision

Resolving 'The IP is already in use' Error During EIP Attachment to an ECS Instance via API

Updated at: 2025-01-03 09:19

This topic provides a solution for the 'The IP is already in use' error message encountered when attaching an Elastic IP Address (EIP) to an ECS instance via an API.

Possible causes

The error may occur if the instance has been repeatedly attached to a public IP address. Check if the ECS instance in question is already bound to a public IP address. If it is, you can proceed to detach the public IP address based on the given IP address.

Solution

If you no longer need to access an ECS instance over the Internet or you need to change an EIP of the instance, we recommend that you disassociate the EIP from the instance to avoid resource waste.

Important

You are not able to access the ECS instance over the Internet after you disassociate an EIP from the instance. Before you disassociate an EIP, make sure that Internet access is no longer required or you can access the instance over alternative network connections.

  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. Find the ECS instance from which you want to disassociate an EIP and choose icon1 > Network and Security Group > Disassociate EIP in the Action column.

  5. In the Disassociate EIP message, confirm the message and select "I am aware of the costs and risks".

  6. Click Confirm.

    Note

    After the EIP is disassociated from the instance, the EIP is not displayed in the IP Address column corresponding to the instance on the Instances page.

  7. (Optional) After an EIP is disassociated from an ECS instance, you are still charged for the EIP. If you no longer use the EIP, you can release the EIP. For more information, see Release a pay-as-you-go EIP.

  • On this page (1)
  • Possible causes
  • Solution
Feedback
phone Contact Us