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

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

1 min read

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.
  2. Create a Router.
  3. Add a Router Interface by connecting the Router to your Subnet.
  4. Launch an Instance and attach it to the Network.
  5. Allocate and associate a Public IP to the Instance.

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.

Step 2: Create a Router

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

Back to the 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

Once the Instance is running, you can allocate and associate a Public IP. There are two ways to do this:

Option 1: From the Instance Details Page

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

Option 2: From the Public IPs Page

  1. Navigate to Public Cloud → Public IPs.
  2. Click Allocate Public IP.
  3. Select IPv4 or IPv6.
  4. After allocation, choose Associate.
  5. Select the target Instance.
  6. Confirm the assignment.

Back to the 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.

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.