---
title: IPv4
url: https://docs.vultr.com/products/compute/instances/optimized-cloud-compute/networking/ipv4
description: Learn how to add additional IPv4 addresses to your Vultr Optimized Cloud Compute instance.
publish_date: 2024-09-23T20:19:42.051477Z
last_updated: 2026-05-26T18:45:38.453541Z
---

# How to Add IPv4 Addresses on a Vultr Optimized Cloud Compute Instance

A public IPv4 address is automatically assigned to an instance upon deployment, unless disabled by default. You can attach multiple IPv4 addresses to the instance to enable external network connections. Additional addresses can also be used for tasks such as IP forwarding, static and dynamic routing.

Follow this guide to add the IPv4 information on a Vultr Optimized Cloud Compute instance using the Vultr Console, API, or CLI.

=== "Vultr Console"

    1. Navigate to **Products** and click **Compute**.
    1. Click your target Vultr Optimized Cloud Compute instance to open its management page.
    1. Navigate to the **Settings** tab.
    1. Click **IPv4** on the left navigation menu to view the instance's public IPv4 network information.
    1. Click **Add Another IPv4 Address** to attach an additional public IP address to the instance.
    1. Check the confirmation prompt and click **Add IPv4 Address** to attach the new public IP address and restart your instance.
    1. Click the default IPv4 reverse DNS value and replace it a custom value to enable reverse DNS on the instance.

=== "Vultr API"

    1. Send a `GET` request to the [**List Instances** endpoint](https://www.vultr.com/api/#tag/instances/operation/list-instances) and note your target instance's ID.

        ```console
        $ curl "https://api.vultr.com/v2/instances" \
          -X GET \
          -H "Authorization: Bearer ${VULTR_API_KEY}"
        ```

    1. Send a `GET` request to the [**List Instance IPV4 Information** endpoint](https://www.vultr.com/api/#tag/instances/operation/get-instance-ipv4) to view the instance's IPv4 information.

        ```console
        $ curl "https://api.vultr.com/v2/instances/{instance-id}/ipv4" \
          -X GET \
          -H "Authorization: Bearer ${VULTR_API_KEY}"
        ```

    1. Send a `POST` request to the [**Create IPv4** endpoint](https://www.vultr.com/api/#tag/instances/operation/create-instance-ipv4) to attach a new IPv4 address to the instance. 

        ```console
        $ curl "https://api.vultr.com/v2/instances/{instance-id}/ipv4" \
          -X POST \
          -H "Authorization: Bearer ${VULTR_API_KEY}" \
          -H "Content-Type: application/json" \
          --data '{
            "reboot" : true
          }'
        ```

    1. Send a `POST` request to the [**Create Instance Reverse IPv4** endpoint](https://www.vultr.com/api/#tag/instances/operation/create-instance-reverse-ipv4) to enable reverse DNS on the instance.

        ```console
        $ curl "https://api.vultr.com/v2/instances/{instance-id}/ipv4/reverse" \
          -X POST \
          -H "Authorization: Bearer ${VULTR_API_KEY}" \
          -H "Content-Type: application/json" \
          --data '{
            "ip" : "<ipv4-address>",
            "reverse" : "<domain>"
          }'
        ```

=== "Vultr CLI"

    1. List all available instances and note your target instance's ID.

        ```console
        $ vultr-cli instance list
        ```

    1. List the instance's IPv4 address information.

        ```console
        $ vultr-cli instance ipv4 list <instance-id>
        ```

    1. Create a new public IPv4 address and attach it to the instance. 

        ```console
        $ vultr-cli instance ipv4 create <instance-id> --reboot
        ```

    1. Create a new IPv4 reverse DNS entry on the instance.

        ```console
        $ vultr-cli instance reverse-dns set-ipv4 <instance-id> --entry <domain> --ip <ipv4-address>
        ```
