> ## Documentation Index
> Fetch the complete documentation index at: https://www.datum.net/docs/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> Agent home for Datum, with what it is, pricing, and how to act: https://agents.datum.net
> If you can only fetch URLs: read https://www.datum.net/docs/llms.txt in full and open the most specific page for the task. Commands, limits, and field paths are on task, operations, and limits pages, not on section overviews. Pages described as "Documentation is coming soon" are placeholders.
> If you have a shell or can save files: download https://www.datum.net/docs/llms-full.txt (every page, about 740 KB) once and search it with grep, instead of fetching pages one at a time.
> datumctl describes itself: `datumctl api-resources` lists resource types and `datumctl explain <resource>` shows a schema. To act on live resources, use Datum MCP or datumctl. To search the docs, use the Docs MCP server at https://www.datum.net/docs/mcp.

# Traffic and connecting

> Learn which traffic a gVPC network carries, how Instances connect to each other, and how they reach IPv6 and IPv4 internet services.

A network carries private traffic between Instances. This page describes which kinds of traffic are possible, how Instances connect to each other, and how they reach the internet. To learn how Instances get their addresses, see [Addressing](https://www.datum.net/docs/galactic-vpc/networks/addressing.md).

> [!NOTE]
>
> [gVPC](https://www.datum.net/docs/galactic-vpc/overview.md) is in preview, and the `networking.datumapis.com/v1alpha` API can change.

## What traffic a network carries

The following table describes which kinds of traffic are possible:

| Traffic | Available | Details |
| - | - | - |
| Between Instances on the same network in the same location | Yes | Instances use their private IPv6 addresses. Any Instance can connect to any port on another Instance in the same network and location. |
| Between Instances on the same network in different locations | Yes | A network spans locations, and Instances can connect to each other privately across locations using their private IPv6 addresses. |
| Between different networks | No | Networks are isolated from each other. |
| To or from other addresses through an Instance | No | A network only delivers a packet addressed to an Instance's own address, and only accepts a packet from an Instance's own address. An Instance can't route traffic for other addresses, so a router or VPN appliance needs an overlay, such as VXLAN or a UDP tunnel, between Instances. |
| Inbound from the internet | Through Datum's ALB | Instance addresses aren't reachable from the internet directly. Public HTTP and HTTPS traffic reaches Instances through Datum's [Application Load Balancer](https://www.datum.net/docs/alb/overview.md). Raw TCP and UDP exposure is a preview limitation. |
| Outbound to the internet | Yes | Instances can reach internet destinations over IPv6, and services that have only IPv4 addresses by hostname. See [Reach the internet](#reach-the-internet). |
| Lookups by name | Yes | Instances resolve public names, and the [Private DNS](https://www.datum.net/docs/domain-dns/private-dns.md) names of other Instances on the same network, such as `web-default-us-central-1-0.instances.datum.internal`. |
| Firewall filtering | Not in the preview | Firewall rules to filter traffic between Instances on a network are on the [roadmap](https://www.datum.net/docs/galactic-vpc/limitations-and-roadmap.md#planned-capabilities). |

The workload API accepts a `networkPolicy` field on each network interface, but the field has no effect. Don't rely on it to restrict traffic. To limit who can reach a service, check credentials in your app, or put services that must stay apart on different networks. Firewall rules for networks are on the [roadmap](https://www.datum.net/docs/galactic-vpc/limitations-and-roadmap.md#planned-capabilities).

## Connect to other Instances

To connect from one Instance to another on the same network, use the peer's private IPv6 address. Keep the following points in mind:

* Make your app listen on IPv6 (`::`). An app that listens only on `0.0.0.0` accepts IPv4 connections only, and Instances don't have IPv4 addresses.
* In a URL, put an IPv6 address in square brackets, such as `http://[fd20:4a3b:91c2:1::1:0:2]:8080/`.
* Connect by name rather than by address. Each Instance has a [Private DNS](https://www.datum.net/docs/compute/private-dns.md) name, such as `web-default-us-central-1-0.instances.datum.internal`, that follows the Instance's address. To try it, see the [Private DNS quickstart](https://www.datum.net/docs/domain-dns/private-dns-quickstart.md).

## Reach the internet

Instances can connect to the internet with no setup. Every network has internet access in every location.

Instances have private IPv6 addresses only, so Datum's edge translates their outbound traffic:

* **To IPv6 destinations:** Datum replaces the Instance's private source address with a public IPv6 address (NAT66).
* **To IPv4-only destinations:** When an app looks up a name that has only IPv4 addresses, the Instance's DNS resolver answers with a synthesized IPv6 address that stands for the IPv4 address (DNS64). Datum's edge translates connections to that address into IPv4 (NAT64). The app connects by name as usual and doesn't see the translation.

TCP, UDP, and ICMP, such as `ping`, work to both IPv6 and IPv4 destinations.

Keep the following points in mind:

* **Connect to IPv4 services by hostname, not by IPv4 address.** An Instance has no IPv4 address or route, so a connection to an IPv4 address such as `203.0.113.10` fails. If a service has only a public IPv4 address and no name, create an `A` record for it in a public [DNS zone](https://www.datum.net/docs/domain-dns/dns.md) you control, and connect by that name. Private IPv4 addresses, such as `10.0.0.5`, aren't reachable.
* **Use the DNS resolvers that the Instance is given.** Datum configures resolvers that perform DNS64. In a `general-purpose` Instance, they're in `/etc/resolv.conf`. An app or image that uses its own resolver without DNS64, such as DNS over HTTPS or a hard-coded public resolver, gets only IPv4 addresses for IPv4-only names, and can't connect to them. The resolver addresses can change, so don't hard-code them.
* **Outbound traffic leaves from shared addresses.** The Instances in a location share their outbound addresses with each other and with other Datum customers. Datum doesn't publish these addresses, and they can change. Don't ask a destination to allowlist them. Authenticate to the destination instead, for example with an API key or a client certificate.
* **You can't turn off internet access.** Every Instance can reach the internet. A setting to turn off internet access for a network is on the [roadmap](https://www.datum.net/docs/galactic-vpc/limitations-and-roadmap.md#planned-capabilities).

## What's next

* To serve a workload publicly through Datum's ALB, see [Compute and ALB](https://www.datum.net/docs/compute/compute-and-alb.md).
* To review what networks can't do, see [Limitations and roadmap](https://www.datum.net/docs/galactic-vpc/limitations-and-roadmap.md).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.