# How do you associate/disassociate floating IP in an instance?

### Overview

When talking about IPs, each instance can have a public/ floating IP address in addition to its private/fixed IP address. Public addresses are used to communicate with networks outside the cloud, such as the Internet, whereas private addresses are used to communicate amongst instances. An instance's private IP address is automatically assigned when it is launched and remains the same until the instance is specifically terminated. &#x20;

The floating IP addresses you can allot to a project are specified by its project quota. After a floating IP address has been assigned to a project, you can: &#x20;

* Associate or connect the floating IP address to a compute instance, where a single instance can only ever receive one floating IP address.&#x20;
* Dissociate or delete the connection between a floating IP address and a compute instance.&#x20;

### **a. How to Associate a Floating IP with an Instance?**&#x20;

Follow the steps to associate a Floating IP with a compute instance.&#x20;

**Step 1:** [Login](https://customer.acecloudhosting.com/index.php?m=ace_product_register_addon\&action=login) to your account.

**Step 2:** Navigate to **Compute** and then click on **Instances**.

<figure><img src="https://2309219721-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FAttkclnlvS7mshXw1NRn%2Fuploads%2FEUZ33rvhWQBJAr4xaGgI%2Fimage.png?alt=media&#x26;token=8bc5b1a0-fe8d-4729-aa63-c0516cd9bcbe" alt=""><figcaption></figcaption></figure>

**Step 3:** Click on the **drop-down menu** against the instance for which you want to associate the floating IP.

<figure><img src="https://2309219721-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FAttkclnlvS7mshXw1NRn%2Fuploads%2FLsGFWQwdIeBc32jQ0aK9%2Fimage.png?alt=media&#x26;token=f1c1e25c-b840-4bb5-9ad3-fa714c3996a9" alt=""><figcaption></figcaption></figure>

**Step 4**: Choose **Attach Floating IP** from the drop-down.

<figure><img src="https://2309219721-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FAttkclnlvS7mshXw1NRn%2Fuploads%2FG2vhs1dKpz55KeHIA7HC%2Fimage.png?alt=media&#x26;token=7e291e8f-2dfe-46dd-8da9-14cd68686faf" alt=""><figcaption></figcaption></figure>

**Step 5:** You need to select an IP address from the pool of pre-defined available IP addresses and the port address, then click on the **Submit** button.

<figure><img src="https://2309219721-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FAttkclnlvS7mshXw1NRn%2Fuploads%2Flu4gv2NfbTP1xF3MMkYz%2Fimage.png?alt=media&#x26;token=d6ef9da4-43cc-45ca-bb55-94ab2b76edbd" alt=""><figcaption></figcaption></figure>

### b. How to Disassociate a Floating IP from an Instance?

Follow the steps for disassociating the Floating IP from a compute instance.&#x20;

**Step 1:** Click on the **drop-down** against the instance for which you want to disassociate the floating IP.

<figure><img src="https://2309219721-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FAttkclnlvS7mshXw1NRn%2Fuploads%2Fam7WH07OwhQKzjXNEqrZ%2Fimage.png?alt=media&#x26;token=2c9d302b-5dd9-4121-b8fa-a66552d334b7" alt=""><figcaption></figcaption></figure>

**Step 2**: Choose **Detach Floating IP** from the drop-down.

<figure><img src="https://2309219721-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FAttkclnlvS7mshXw1NRn%2Fuploads%2Fe86E5oVypj2jMjf3dVl0%2Fimage.png?alt=media&#x26;token=c625748f-822f-45cf-a437-5f03b13ad4d7" alt=""><figcaption></figcaption></figure>

**Step 3:** Select the **Floating IP** you want to disassociate from the drop-down menu and click the **Submit** button.

<figure><img src="https://2309219721-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FAttkclnlvS7mshXw1NRn%2Fuploads%2F7ztcyS7A8Vu6mXbnuzs6%2Fimage.png?alt=media&#x26;token=bc95b33c-738f-4c0c-b3eb-b759db8b15a8" alt=""><figcaption></figcaption></figure>

&#x20;
