Multiple Public IP
Multiple Public IP Addresses for a Single Container

Assign Multiple Public IP Addresses
Public addresses can be assigned while creating a new environment or while changing the topology of an existing one.
1Open the topology wizard
Create a new environment or open Change Environment Topology for an existing environment.
2Set the address quantity
Use the Public IPv4 and Public IPv6 fields to enter the required number of addresses for the selected layer.

Manage Assigned Addresses
Each node in the dashboard lists its private IP first, followed by public IPv4 addresses and then public IPv6 addresses.
- Private IP — automatically assigned internal address.
- Public IPv4 — one address or an expandable list of all IPv4 addresses.
- Public IPv6 — one address or an expandable list of all IPv6 addresses.

Use the controls beside an address to copy it or detach it. The Attach/Detach IP(s) action changes the total number of addresses for that IP version.

Primary Public IP Behaviour
The first public address added for each IP version is treated as the primary address and is displayed first in its list.
- The primary address cannot be removed while other addresses of the same version remain attached.
- The primary address is used for incoming and outgoing traffic.
- Additional public addresses can receive incoming traffic but are not the default source for outgoing traffic.
View Addresses through SSH Gate
All addresses assigned to a container are also visible when connecting to the environment through SSH Gate.

API Reference
SetExtIpCount
Use SetExtIpCount to increase or reduce the number of public IPv4 or IPv6 addresses attached to a container.
https://{hoster-api-host}/1.0/environment/control/rest/setextipcount
?envname={string}
&session={string}
&type={ipv4|ipv6}
&count={int}
&nodegroup={string}
&nodeid={int}
| Parameter | Description |
|---|---|
envname | Name of the source environment. |
session | Current user-session ID. |
type | Public-IP version: ipv4 or ipv6. |
count | Required total number of addresses per container. |
nodegroup | Destination node group, such as bl, cp, sqldb, nosqldb, storage, vps, or build. |
nodeid | ID of the destination node. |
AttachExtIp and DetachExtIp methods are deprecated but remain available for backward compatibility.SwapExtIps
Use SwapExtIps to exchange public IP addresses between two nodes in the same or different environments.
https://{hoster-api-host}/1.0/environment/control/rest/swapextips
?envname={string}
&session={string}
&sourcenodeid={int}
&destnodeid={int}
&sourceip={string}
&destip={string}
Omit sourceip and destip to swap all public addresses between the selected nodes.
SwapExtIps currently supports public IPv4 addresses only.