---
title: "How to Assign Public IP to a Public Cloud [New]"
description: "0:00 2:35 [*This article is intended for customers using our New Public Cloud Platform. For articles covering our old Public Cloud offering, please check here.*](https://kb.leaseweb.com/kb/public-cloud/) To make your instance accessible from the internet, you need to assign a Public IP…"
url: "https://kb.leaseweb.com/kb/public-cloud-new/how-to-assign-public-ip-to-a-public-cloud-new/"
updated: "2026-08-12"
category: "Products / Public Cloud [New]"
tags:
  - add ipv4
  - add ipv6
  - create network
  - create router
  - ips
  - ipv4
  - public cloud
  - public cloud network
---

# How to Assign Public IP to a Public Cloud [New]

0:00  2:35        [*This article is intended for customers using our New Public Cloud Platform. For articles covering our old Public Cloud offering, please check here.*](https://kb.leaseweb.com/kb/public-cloud/)

To make your instance accessible from the internet, you need to assign a Public IP address, IPv4 or IPv6.

Before assigning a Public IP, you must first create and configure the required networking components.

## Prerequisites

Before you can assign a Public IP, ensure the following resources exist:

- A Network
- A Router
- A Router Interface connecting the Router to your Subnet
- An Instance connected to the Network

## Configuration Flow

The recommended setup flow is:

1. [Create a Network and Subnet.](https://kb.leaseweb.com/?post_type=docs&p=16354#Step%201:%20Create%20a%20Network)
2. [Create a Router.](https://kb.leaseweb.com/?post_type=docs&p=16354#Step%202:%20Create%20a%20Router)
3. [Add a Router Interface by connecting the Router to your Subnet.](https://kb.leaseweb.com/?post_type=docs&p=16354#Step%203:%20Add%20a%20Router%20Interface)
4. [Launch an Instance and attach it to the Network.](https://kb.leaseweb.com/?post_type=docs&p=16354#Step%204:%20Launch%20an%20Instance)
5. [Allocate and associate a Public IP to the Instance.](https://kb.leaseweb.com/?post_type=docs&p=16354#Step%205:%20Assign%20a%20Public%20IP)

Only after the Instance is connected to a Network that has a Router and Router Interface configured can a Public IP be assigned.

## Step 1: Create a Network

1. Navigate to: **Public Cloud → Networks**.
2. Create a Network and Subnet that will be used by your instance.
   - When creating a subnet, you can choose either **IPv4** or **IPv6**, depending on your networking requirements.

*You are not limited with a single IP version (IPv4 or IPv6) - you can select IPv4 here and add an IPv6 subnet later once the network has been created.*

![image 29](https://kb.leaseweb.com/wp-content/uploads/2026/06/image-29-1024x399.png)

## Step 2: Create a Router

1. Navigate to: **Public Cloud → Networks → Routers**.
2. Open the **Routers** tab and create a new Router.

![image 15](https://kb.leaseweb.com/wp-content/uploads/2026/07/image-15.png)

[Back to the top ↑](#top)

## Step 3: Add a Router Interface

After creating the Router:

1. Open the Router details.
2. Select **Add Interface**.
3. Choose the Subnet created in the previous step.
4. Specify the Router IP address (*optionally*)
5. Confirm the configuration.

This allows traffic from your Network to be routed externally.

## Step 4: Launch an Instance

1. Create a new Instance and attach it to the Network created earlier.
2. The Instance will receive a private IP address from the selected Subnet.

## Step 5: Assign a Public IP to a Project

1. Go to Public IPs from the Public Cloud menu
2. Click on Allocat IP to Project
3. Add description (optionally)
4. Click on Allocate

After completing these steps, the Public IP address will be available and can be assigned to an instance from the instance details page.

![image 16](https://kb.leaseweb.com/wp-content/uploads/2026/07/image-16-1024x494.png)

## Step 6: Allocate IP Address from the Instance Details Page

1. Open the Instance details page.
2. Navigate to the Public IP section.
3. Select **Assign Public IP**.
4. Select IPv4
5. Confirm the assignment.

![image 30](https://kb.leaseweb.com/wp-content/uploads/2026/06/image-30.png)

[Back to the top ↑](#top)

## Verify Connectivity

After the Public IP is associated, you can access the Instance from the internet using:

- SSH for Linux instances.
- RDP for Windows instances.
- Applications running on exposed ports.

**Important**

Ensure that the appropriate Security Group rules are configured to allow inbound traffic.

## Important Notes

- Public IPs can only be assigned to Instances connected to a Network with a Router and Router Interface configured.
- Public IPs can be detached and reassigned to other Instances when needed.
- Security Groups control which traffic is allowed to reach the Instance.
- Both IPv4 and IPv6 Public IPs are supported.
