Skip to content

Public ports and static addresses

A public port puts a TCP service on the internet, such as a database, an SSH server or a game server. A static IPv4 address gives a Computer, a pool or an organization its own fixed address.

Public ports

#

Heaven picks the public port and returns the host and port clients connect to. Anyone on the internet can connect, so the service must check who's connecting itself.

The Computer's owner, an admin, someone with Admin access to it or a member granted port add can publish a port, if the organization's external sharing setting allows it. An API key with a command list can't publish ports, so use a sign-in or a key without one. The pool needs a free port in its allowance.

In the Computer's Networking tab, choose Open port under Ports, enter the service's TCP port and choose Open port again.

heaven port add my-site 25565

Reference: Publish a port.

Port allowance

#

Public ports come with your capacity at no extra charge. An organization's pools on one server share 4 ports, plus 1 for each unit in a running pool, up to 20.

Capacity on the serverPublic ports
One Tiny block5
One Small block6
One Medium block8
One Big block12
One Huge block or larger20

A pool can open at most 10 new ports in 24 hours, so one pool can't churn through a server's ports. Reopening a recently closed port doesn't count.

heaven port view my-site

It lists the Computer's ports, how many are left, and when the pool can open another if it hit the daily limit.

Reference: List public ports.

Close a port

#

Closing a port stops new connections, and open ones continue until they end. Opening the same service port again within 30 days can get the same public port number back. Choose Close port in the port's menu in the Networking tab.

heaven port remove my-site PUBLIC_PORT

Reference: Close a port.

Static addresses

#

A static IPv4 address is a fixed address your organization buys and attaches to a Computer, a pool or the whole organization on a server. Use one when a partner allowlists your IP, or to reach a Computer's services directly.

Attach toWhat the address does
ComputerReceives TCP and UDP at the service's own port. The Computer also sends outbound IPv4 traffic from this address.
PoolCarries outbound IPv4 traffic and published TCP ports for Computers in the pool that have no address of their own.
OrganizationProvides the default address for pools on that server that have no address of their own.

Outbound traffic leaves from the Computer's own address if it has one, then its pool's, then its organization's, and otherwise from the server's shared address.

Buy an address

#

Admins and the billing owner buy addresses, from the CLI.

heaven ip buy --organization acme
heaven ip view --organization acme

Reference: Buy static addresses, List static addresses.

Attach an address

#

Each Computer, pool or organization can have one address. A Computer's owner or an admin can attach one to the Computer, and admins or the billing owner to a pool or the organization.

heaven ip attach ADDRESS my-site
heaven ip attach ADDRESS --pool web --organization acme
heaven ip attach ADDRESS --account --organization acme

If the organization is on several servers, add --server for the organization-wide one.

Reference: Attach static addresses.

Detach an address

#

A detached address stays with the organization to attach elsewhere. Public ports that used it keep their numbers on the next address in the order above, or close if there's none.

heaven ip detach ADDRESS --organization acme

Reference: Detach static addresses.

Release an address

#

Releasing an address ends its charges. For 12 hours only your organization can buy it back, with ip buy --address ADDRESS, which also gives you time to take it off allowlists before anyone else gets it.

heaven ip release ADDRESS --organization acme --yes

Reference: Release static addresses.