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:
- Create a Network and Subnet.
- Create a Router.
- Add a Router Interface by connecting the Router to your Subnet.
- Launch an Instance and attach it to the Network.
- 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
- Navigate to: Public Cloud → Networks.
- 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.
![How to Assign Public IP to a Public Cloud [New] 1 image 29](https://kb.leaseweb.com/wp-content/uploads/2026/06/image-29-1024x399.png)
Step 2: Create a Router
- Navigate to: Public Cloud → Networks → Routers.
- Open the Routers tab and create a new Router.
![How to Assign Public IP to a Public Cloud [New] 2 image 15](https://kb.leaseweb.com/wp-content/uploads/2026/07/image-15.png)
Step 3: Add a Router Interface
After creating the Router:
- Open the Router details.
- Select Add Interface.
- Choose the Subnet created in the previous step.
- Specify the Router IP address (optionally)
- Confirm the configuration.
This allows traffic from your Network to be routed externally.
Step 4: Launch an Instance
- Create a new Instance and attach it to the Network created earlier.
- 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
- Open the Instance details page.
- Navigate to the Public IP section.
- Select Assign Public IP.
- Choose IPv4 or IPv6.
- Confirm the assignment.
![How to Assign Public IP to a Public Cloud [New] 3 image 30](https://kb.leaseweb.com/wp-content/uploads/2026/06/image-30.png)
Option 2: From the Public IPs Page
- Navigate to Public Cloud → Public IPs.
- Click Allocate Public IP.
- Select IPv4 or IPv6.
- After allocation, choose Associate.
- Select the target Instance.
- Confirm the assignment.
![How to Assign Public IP to a Public Cloud [New] 4 image 31](https://kb.leaseweb.com/wp-content/uploads/2026/06/image-31-1024x382.png)
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.