---
title: "Private network between services: the while.sh docs"
url: https://while.sh/en/docs/building-blocks/private-network/
updated: 2026-11-09
---

# Private network

The services of one project talk to each other through a private address, which always follows the live version, without going through the internet.

> You, to your agent: Have the site call the API, without going through the internet.

## What your app receives

Your app receives these environment variables at every deployment:

| Variable | What it holds |
|---|---|
| `SERVICE_<NAME>_URL` | The private address of the <NOM> service in the same environment. |

## When to use it

Use it when two services of the same project talk to each other, without going through the Internet.

## How it works

Each web service can be reached by the other services of its environment, at a stable address that follows the active version: `SERVICE_<NAME>_URL`.

## What to know

The address is `http://<service>.<namespace>.svc`, on port 80 whatever the declared port. A worker has no address. A call wakes the service if it sleeps ([Sleep](/en/docs/building-blocks/sleep/)).
