How instances without a public address reach the internet
How a Cloud Compute instance with no public IPv4 address uses a shared address to reach the internet, and how port forwards let you reach it.
In the dashboard
A Cloud Compute instance you order without a public IPv4 address still reaches the internet. On the order page, that is the Shared address option of the IPv4 address card (Check the settings). The instance's traffic leaves through a shared address: an IPv4 address that other customers' instances use as well. The instance can install packages, fetch updates and call other services. From the internet, only the ports you forward reach the instance.
An instance uses the shared address only while it has no public IPv4 address of its own. Attach a floating IP and the instance uses that address for everything.
What works and what does not
Section titled What works and what does not- The instance opens connections
- Anything the instance starts itself works: package installs, updates, DNS lookups, calls to an API, a tunnel it dials out. The answers come back to it.
- Only the ports you forward reach the instance
- A connection that starts on the internet arrives only at a port of the shared address that a port forward opens to the instance. The instance gets one forward by itself, for SSH or Remote Desktop, and you can add more, as Reach the instance through a port forward describes. The display console needs no forward. Neither does IPv6, where the instance has an IPv6 /64.
- Private addresses do not reach each other
- Each instance has a private address, and no other instance can connect to it. Another instance reaches a forwarded port the way anything on the internet does, at the shared address and the public port.
- Outbound mail on port
25is closed - The instance cannot deliver mail straight to other mail servers. Send through a mail service on its submission port,
587or465, which stay open. Connections that come in on a forwarded port are not affected. - One instance holds up to 32,768 connections
- Past that many connections open at once, new ones fail until others close. The instance also receives at most 32,768 connections at once through its port forwards.
- The traffic counts as the instance's own
- What the instance sends and receives through the shared address counts toward its data transfer, as How instance traffic is counted describes. The shared address itself costs nothing.
See the shared address
Section titled See the shared addressIn the dashboard, go to Cloud Compute, open the instance and select the Network tab. An instance that reaches the internet through a shared address has an Outbound access card:
- Shared address
- The address the instance's traffic leaves from. A site the instance connects to sees this address.
- Private address
- The address the instance holds itself, with its prefix length,
/32. - Gateway
- The gateway the instance sends its traffic to.
The card ends with Other customers share this address. Only the ports you forward reach the instance through it, and outbound mail on port 25 is closed. Attach a floating IP to give the instance a public address of its own. The Port forwards card on the same tab lists those ports.
The Connect card on the Overview tab shows how to reach the same instance:
- With the port forward for SSH, it shows the command to connect, such as
ssh -p 10000 ubuntu@198.51.100.7, with a copy button. - With the port forward for Remote Desktop, it shows Remote Desktop and the address to enter, such as
198.51.100.7:10000. - With either, it says
This instance shares its address with other customers. It is reached through its port forwards. - With neither, it shows No public address and the notice
This instance reaches the internet through a shared address. Add a port forward on the Network tab to reach it from the internet, or attach a floating IP.
Open Network beside the notice opens the Network tab. An instance with an IPv6 address shows that address on the card instead, with the SSH command.
Warning
Do not use the shared address to recognise your instance. Other customers' instances leave from it too, so a firewall rule or an allowlist that names it lets them in as well. The address also changes when we move the instance to another machine, and so do the public ports of its port forwards. Attach a floating IP when a service has to know your instance by its address.
Reach the instance through a port forward
Section titled Reach the instance through a port forwardA port forward opens one port of the shared address to one port of the instance. With a forward from public port 10000 to port 22, a connection to 198.51.100.7:10000 reaches port 22 of the instance.
Connect through the first port forward
Section titled Connect through the first port forwardAn instance behind a shared address gets its first port forward by itself. On a Linux or BSD image it is for SSH, port 22 of the instance. On Windows it is for Remote Desktop, port 3389. The Port forwards card on the Network tab lists it with the Address to connect to, such as 198.51.100.7:10000.
For SSH, pass the public port with -p, then the user and the shared address:
ssh -p 10000 ubuntu@198.51.100.7
The Connect card on the Overview tab shows this command for your instance. Connect to an instance over SSH covers the user, the keys and the password.
For Windows, open Remote Desktop on your computer and enter the address with its port, 198.51.100.7:10000.
This forward is an ordinary one. You can remove it, and we do not put back a forward you removed.
Add a port forward
Section titled Add a port forward- In the dashboard, go to Cloud Compute, open the instance and select the Network tab.
- On the Port forwards card, type the Port in the instance: the port your service listens on, from 1 to 65535.
- Choose the Protocol:
TCP,UDPorTCP and UDP. - Type a Name if you want one, such as
Web. - Select Add port forward.
The message Port forward added. confirms it. The card lists the forward with its Address, Protocol, Port in the instance and Name. Connect to the address the card shows.
We choose the public port: the lowest free port of the shared address, from 10000 to 40000. A new forward works within a minute or two.
An instance holds up to 5 port forwards, the first one included. The card counts them, as in 1 of 5 port forwards used.
Remove a port forward
Section titled Remove a port forward- On the Port forwards card, select Remove… beside the forward.
- In the
Remove this port forward?dialog, select Remove port forward.
The message Port forward removed. confirms it, and the public port no longer reaches the instance. A forward you add later may get a different public port. With no forward left, the card shows No port forwards.
What a port forward does and does not do
Section titled What a port forward does and does not do- The address and the port change when the instance moves
- A port forward is on the shared address of the machine the instance runs on. When we move the instance to another machine, the address and the public port of each forward change. Read the new ones on the Port forwards card. A floating IP is the address that stays the same.
- You do not get port 22, 80 or 443
- We choose every public port from 10000 to 40000. To serve a website from the instance, create a web proxy that points at the forwarded address and port, or attach a floating IP.
- DDoS Shield does not filter the traffic
- Traffic to a forwarded port goes straight to the machine and does not pass DDoS Shield. Traffic to a floating IP does.
- Port forwards rest while the instance has a public IPv4 address
- With a floating IP attached, the instance's ports are reachable on that address. Its port forwards stay listed, and the card says
These forwards rest while the instance has a public IPv4 address. They work again when it has none.Until then you can remove a forward, but you cannot add one.
Give the instance an address of its own
Section titled Give the instance an address of its own- Order a floating IP, or pick one on your account, and attach it to the instance, as Attach and detach a floating IP describes.
- Restart the instance from its header. The instance sets up its addresses when it starts.
The Outbound access card goes, and the instance sends and receives on the floating IP. If you later detach its last IPv4 address and restart it, the instance goes back to the shared address, and its port forwards work again.
When the instance cannot reach the internet
Section titled When the instance cannot reach the internet- The Outbound access card shows, but a download or a lookup inside the instance fails
- The instance takes its network settings when it starts. Restart it from the header. A
reboottyped inside the instance does not apply them. - The instance was created before its location had shared addresses
- We rewrite the network settings of such an instance once, and it needs one restart to use them. On the instance's Billing tab, look in the Activity table for the line
Network settings updated for the shared address. Restart the instance to use them.When the line is there, restart the instance from the header. - The Activity table has no such line, and a restart did not help
- Write the settings yourself. On the Access tab, select Reapply settings… on the Advanced card, then restart the instance. Reapply the account and network settings has the steps.
- The instance runs an image that does not read cloud-init, or it is in rescue mode
Nothing sets the network up for you there. Enter the values from the Outbound access card by hand. Replace the address with your instance's Private address, and
ens18with the interface name thatip linkshows:Shellip link set ens18 up ip addr add 100.64.3.233/32 dev ens18 ip route add default via 169.254.100.1 dev ens18 onlink- Sending mail fails with a refused connection on port
25 - That port is closed for instances on a shared address. Use your mail service's port
587or465. - The Network tab has no Outbound access card
- Either the instance has a public IPv4 address, and uses it, or it has no IPv4 network. The Addresses card says which. For an instance with no IPv4 network, attach a floating IP and restart it.
When a port forward does not work
Section titled When a port forward does not work- A forwarded port does not answer
- Check that the service in the instance listens on the port, and that the instance's own firewall allows it. A new forward takes a minute or two to work. Then check that the Port forwards card still lists the forward at the address you use: the address and the public port change when we move the instance to another machine.
An instance holds up to 5 port forwards. Remove one to add another.- The instance has its 5 port forwards. Remove one you no longer use, then add the new one.
Port 22 (TCP) of this instance is already forwarded.- A forward already opens that port of the instance with that protocol. The message names the port and the protocol of the forward that holds it, and a forward for
TCP and UDPholds both. Use the forward the card lists, or remove it and add the one you want. This instance is moving to another host. Change its port forwards once the move ends.- We are moving the instance to another machine. Add or remove the forward once the move has finished.
With the API
Section titled With the APIGET /api/v1/client/vps/{uuid} and GET /api/v1/client/vps carry outbound on each instance:
curl https://api.coritan.com/api/v1/client/vps/$INSTANCE_UUID \
-H "Authorization: Bearer $CORITAN_TOKEN"
{
"uuid": "9b7d6c5e-4f3a-2b1c-0d9e-8f7a6b5c4d3e",
"hostname": "build-01",
"ip_address": null,
"outbound": {
"mode": "nat",
"shared_ipv4": "198.51.100.7",
"private_ipv4": "100.64.3.233",
"gateway": "169.254.100.1"
}
}
modenatwhen the instance has no public IPv4 address and reaches the internet through the shared address.publicwhen it has a public IPv4 address of its own, whichip_addressholds.nonewhen it has neither, and so no IPv4 network.shared_ipv4- The shared address, for
nat. private_ipv4- The instance's private address, for
nat. The instance holds it as a/32. gateway- The instance's gateway, for
nat.
The three addresses are null unless mode is nat. mode says what the instance is set up for: a running instance takes a change at its next start. The answer above leaves out the instance's other fields.
Before you order, GET /api/v1/client/vps/address-options says which locations give an instance a shared address: shared_ipv4 is true there. See what each location offers for IPv4 describes the answer.
List the port forwards
Section titled List the port forwardsGET /api/v1/client/vps/{uuid}/port-forwards lists the instance's port forwards, lowest public port first:
curl https://api.coritan.com/api/v1/client/vps/$INSTANCE_UUID/port-forwards \
-H "Authorization: Bearer $CORITAN_TOKEN"
{
"items": [
{
"uuid": "5d0c2a8e-7b1f-4c3d-9e6a-1f2b3c4d5e6f",
"label": "SSH",
"kind": "ssh",
"protocol": "tcp",
"public_port": 10000,
"private_port": 22,
"address": "198.51.100.7",
"endpoint": "198.51.100.7:10000",
"active": true,
"created_at": "2026-11-17T04:00:00"
}
],
"limit": 5,
"used": 1,
"available": true,
"reason": null,
"address": "198.51.100.7"
}
kindsshorrdpfor the forward the instance got by itself, andcustomfor one that was added.protocoltcp,udporboth.public_portandprivate_port- Connections to
public_portof the shared address reachprivate_portof the instance. activetruewhile the forward reaches the instance.addressandendpointarenullwhile it does not.limitandused- How many port forwards an instance holds, and how many this one has.
availabletruewhile the instance is behind a shared address, which is whenoutbound.modeisnat. Theaddressbeside it is that shared address. Otherwisereasonispublic_ipv4for an instance with a public IPv4 address, whose forwards rest, orno_shared_address.
An instance that is not yours answers 404.
Add and remove a port forward
Section titled Add and remove a port forwardPOST /api/v1/client/vps/{uuid}/port-forwards adds one. Send private_port, from 1 to 65535. protocol is tcp when left out, and label is an optional name of up to 64 characters:
curl -X POST https://api.coritan.com/api/v1/client/vps/$INSTANCE_UUID/port-forwards \
-H "Authorization: Bearer $CORITAN_TOKEN" \
-H "Content-Type: application/json" \
-d '{"private_port": 8080, "protocol": "tcp", "label": "Web"}'
{
"uuid": "a41f6c0b-2d3e-4f5a-8b7c-9d0e1f2a3b4c",
"label": "Web",
"kind": "custom",
"protocol": "tcp",
"public_port": 10001,
"private_port": 8080,
"address": "198.51.100.7",
"endpoint": "198.51.100.7:10001",
"active": true,
"created_at": "2026-11-17T04:05:00"
}
It answers 201 with the new forward. You cannot send the public port: we choose it. The request answers 409 with one of these sentences when it cannot add the forward:
An instance holds up to 5 port forwards. Remove one to add another.Port 22 (TCP) of this instance is already forwarded., with the port and the protocol of the forward that holds it.This instance has a public IPv4 address. Its ports are reachable on that address, so it needs no port forward.This instance has no shared address to forward a port from.This instance is moving to another host. Change its port forwards once the move ends.
A suspended instance answers 403 with Instance is suspended. A private_port that is not a port, or a protocol other than the three, answers 422. An instance that is not yours answers 404, and asking too often answers 429 with a Retry-After header.
DELETE /api/v1/client/vps/{uuid}/port-forwards/{forward_uuid} removes one, by the uuid the list gives it:
curl -X DELETE https://api.coritan.com/api/v1/client/vps/$INSTANCE_UUID/port-forwards/$FORWARD_UUID \
-H "Authorization: Bearer $CORITAN_TOKEN"
{"removed": "a41f6c0b-2d3e-4f5a-8b7c-9d0e1f2a3b4c", "public_port": 10001}
A forward or an instance that is not yours answers 404. The request answers 409 while we move the instance, and 429 with a Retry-After header when you ask too often.
An organization's customer portal has the same three routes under /api/v1/orgs/{org_slug}/portal/vps/{uuid}/port-forwards, for the customer's own instances. An organization's own instances have them under /api/v1/orgs/{org_slug}/vps/{uuid}/port-forwards: any member can list the forwards, and owners and admins add and remove them.
Related
Section titled Related- Manage an instance's addresses and names covers the rest of the Network tab.
- Attach and detach a floating IP gives the instance a public address.
- Connect to an instance over SSH covers the user, the keys and the password you sign in with.
- Use an instance's console reaches an instance without a network.
- How the Coritan network works explains how a floating IP's traffic travels.
API operations on this page
| Method | Path | What it does |
|---|---|---|
GET | /api/v1/client/vps/{uuid}/port-forwards | The ports of the shared address that reach this instance |
POST | /api/v1/client/vps/{uuid}/port-forwards | Forward a port of the shared address to a port of this instance |
DELETE | /api/v1/client/vps/{uuid}/port-forwards/{forward_uuid} | Remove one of this instance's port forwards |