# Fixed IP

> One permanent internet address for your workspace, so databases and admin panels can allow your team and nobody else. Run by us, or on your own server.

Many databases, cloud consoles and admin panels can be locked to a list of allowed IP addresses. That stops working when your team is at home, in a café or in a hotel, where the address changes all the time.

A **fixed IP** is one public address your team's traffic leaves from, wherever each person is. You allow that one address in the service you're protecting, and your people get in from anywhere.

There are two ways to have one:

| | We run it | Run your own |
|---|---|---|
| The address | One we give you, used by no other customer | Your own server's static address |
| The gateway | A machine we run inside your network | A Linux, macOS or Windows machine of yours |
| Setting it up | Ask us; we do it | About ten minutes, with the steps below |
| Available | An add-on on Team and Business, priced per address | Today, on every plan |

Both work the same way for your devices.

## We run it

An add-on for the Team and Business plans, priced per address: we confirm the price with you by email before setting it up.

Open **Fixed IP** in the dashboard, press **Ask for a fixed IP** and say what you'll lock to it. Once it's ready, the page shows your address, and a machine called `fixed-ip` appears in **Machines**. We run that machine: it can't be renamed or removed from the workspace, and it doesn't count against your plan's machines.

### Addresses that always use it

This is the usual way. On the **Fixed IP** page, under **Addresses that always use it**, add the internet address of what you're protecting: a database, an API, an admin panel. Write one address (`203.0.113.9`) or a range (`198.51.100.0/24`), up to 32 of them.

Every device in the workspace then reaches those addresses from your fixed IP, with nothing to switch on. Everything else leaves each device as usual.

### A device's whole internet traffic

The gateway is also an [exit node](/features/exit-nodes). On a device, choose `fixed-ip` as the exit node in the Underpass app, or run:

```bash
underpass set --exit-node=fixed-ip
```

All of that device's internet traffic now leaves from your fixed IP. To stop:

```bash
underpass set --exit-node=
```

### Sites by name

When a service's address changes but its name doesn't, make an [app](/features/app-connectors) for it: in **Apps**, list the sites and pick `fixed-ip` as the connector.

## Run your own

You need a machine that's always on and has a static public address, like a small cloud server. Linux is the simplest.

1. **Install Underpass on the server** and join it to your network. See [Add a server](/getting-started/add-a-server).

2. **Offer the address you need to reach** as a route, on the server:

   ```bash
   underpass set --advertise-routes=203.0.113.9/32
   ```

   Use the address of the database or API, not the server's own. For several, separate them with commas.

3. **Approve it.** In the dashboard, open **Routes** and approve the route on that server.

4. **Keep the server signed in.** In **Machines**, open the server and turn off key expiry for it, so it doesn't need to sign in again.

Every device in the workspace now reaches that address through your server, and the service sees the server's address. Allow the server's public address in the service.

To send a device's whole internet traffic through the server instead, make it an [exit node](/features/exit-nodes).

## What to allow

In the service you're protecting, allow only your fixed IP: the address on the **Fixed IP** page, or your own server's public address. It's IPv4.

To check a device is using it for all traffic, open a "what is my IP" site on that device while the exit node is on.

## Limit who can use it

By default everyone in the workspace reaches the addresses you added. To limit it, add a rule in [Access controls](/features/access-controls) that lets a group reach each address, and nobody else. Each address is a subnet destination in the rules, the same as any [subnet route](/features/subnet-routes). The managed gateway has the tag `tag:fixed-ip`.

## How it behaves

- **Devices connect to the gateway directly**, encrypted with WireGuard, like any other machine in your network.
- **A managed address is yours alone.** No other Underpass customer's traffic leaves from it.
- **If the gateway is offline**, the addresses that always use it can't be reached until it's back. A device using it as an exit node sends its other traffic out directly, from its own address, unless **Block internet if it's down** is on. The **Fixed IP** page shows the managed gateway's state.
- The gateway carries IPv4. While a device uses it as an exit node, the device doesn't send IPv6 around it.

To change or give up a managed address, contact us.
