---
title: "Direct public IP addresses"
sidebar_label: "Direct public IP addresses"
sidebar_position: 8
description: "How to connect a direct public IP address to a cloud server, how to switch from a floating public IP address to a direct one, and other instructions"
---

import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';
import { TabItemLabel } from '@selectel/docux/components';
import TrashIcon from '@selectel/docux/icons/trash'
import EditIcon from '@selectel/docux/icons/edit'
import MoreVerticalIcon from '@selectel/docux/icons/more-vertical'
import ConnectDirectIpToCloudServer from '@site/i18n/en/docusaurus-plugin-content-docs/current/_partials/cloud-servers/cloud-networks/connect-direct-ip-to-cloud-server.mdx'
import Formbricks from '@theme/MDXComponents/Formbricks'

# Direct public IP addresses

:::info

Direct public IP addresses are not available in [pools](/infrastructure/locations.mdx#pool) uz-1 and ke-1.

:::

Direct public IP addresses are static IP addresses that can be connected to [cloud servers](#connect-direct-ip-to-cloud-server) to configure incoming and outgoing internet access for them.

Direct public IP addresses are not processed by a [cloud router](/cloud-servers/cloud-networks/cloud-routers.mdx) using 1:1 NAT, but are connected directly to a cloud server. Due to the lack of NAT, this type of internet connection is more fault-tolerant and faster, but less secure than [connecting via a floating public IP address](/cloud-servers/cloud-networks/configure-access-to-internet.mdx#internet-access-via-floating-ip).

A direct public IP address is created together with a [port](/cloud-servers/cloud-networks/ports.mdx). When a direct public IP address is deleted, the port is deleted along with the IP address.

When created, a direct public IP address is allocated from a pool of addresses automatically; it cannot be selected.

A port with a direct public IP address has one IP/MAC address pair; you cannot add [additional allowed IP/MAC addresses](/cloud-servers/cloud-networks/ports.mdx#add-allowed-ip-mac-addresses-on-port) to it.

A direct public IP address can only be used within a single [project](/access-control/projects/about-projects.mdx) and a single [pool](/infrastructure/locations.mdx#pool).

There are traffic volume limits for direct public IP addresses—bandwidth. You can view them in the [Bandwidth](/cloud-servers/cloud-networks/about-networks.mdx#bandwidth) table.

You can work with direct public IP addresses using the [API](/api/cloud-public-network/) and [Terraform](/terraform/selectel-provider-reference/resources/vpc_public_port_v1/). In the [Control panel](https://my.selectel.ru/vpc/default/networks/), you can view the list of direct public IP addresses and delete them.

## Connect a direct public IP address to a cloud server \{#connect-direct-ip-to-cloud-server}

Если on сервере используется публичный плавающий IP-адрес and вы хотите перейти on прямой публичный, используйте подраздел [Switching a cloud server from a floating public IP to a direct public IP](/cloud-servers/cloud-networks/configure-access-to-internet.mdx#change-floating-ip-to-direct-ip) of the [Configure incoming and outgoing internet access](/cloud-servers/cloud-networks/configure-access-to-internet.mdx) guide.

<ConnectDirectIpToCloudServer />

## Delete a direct public IP address \{#delete-direct-ip}

After deletion, the direct public IP address will return to the pool of direct public addresses.

If a direct public IP address is connected to a cloud server, the server port assigned to this IP address will be deleted along with it.

<Tabs queryString="delete-direct-public-ip-port">
  <TabItem value="panel" default>
    <TabItemLabel>
      Control panel
    </TabItemLabel>

    1. In the [Control panel](https://my.selectel.ru/vpc/default/networks/), click **Products** in the top menu and select **Cloud Servers**.

    2. Go to the **Network** section → **Direct Public IP Addresses** tab.

    3. In the <MoreVerticalIcon /> menu of a direct public IP address, select **Delete IP address**.

    4. Enter the IP address to confirm deletion.

    5. Click **Delete**.
  </TabItem>
</Tabs>

<Formbricks />
