# License Server

<figure><img src="/files/Pm7PSLNmVeSpxrdllTOd" alt=""><figcaption><p>Use the license server as a proxy for the Roboflow API.</p></figcaption></figure>

## Prerequisites

* Linux server running Ubuntu 20.04+ or Debian 11+
* Internet access to api.roboflow\.com and repo.roboflow\.com
* Static IP address or hostname
* Port 80 available (or custom port)
* Docker Engine 20.10+
* 200GB+ storage
* 4GB+ memory

## Using the License Server

If you wish to firewall the Roboflow Inference Server from the Internet, you will need to use the Roboflow License Server which acts as a proxy for the Roboflow API and your models' weights.

On a machine with access to `https://api.roboflow.com` and `https://repo.roboflow.com` (and port `80` open to the Inference Server running in your private network), pull the License Server Docker container:

```
docker pull repo.roboflow.com/roboflow/license-server
```

And run it:

```
docker run -d --name license-server -p 80:80 --restart unless-stopped \
    repo.roboflow.com/roboflow/license-server:latest
```

Configure your Inference Server to use this License Server by passing its IP in the `LICENSE_SERVER` environment variable:

```
sudo docker run --net=host --env LICENSE_SERVER=10.0.1.1 roboflow/inference-server:cpu
```

## Configuring via Device Manager

If you manage your devices through [Device Manager](/deploy/device-manager.md), you can set the License Server address directly in the Configuration tab for each device's inference service.

When you enter a License Server address, `API_BASE_URL` is automatically set to `https://api.roboflow.com`. This gives the License Server an upstream to proxy requests to, and prevents a misconfiguration where both `LICENSE_SERVER` and `API_BASE_URL` point to the same on-prem address (which would cause a recursive proxy loop).

Clearing the License Server field does not remove `API_BASE_URL`, so existing configurations are not disrupted.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.roboflow.com/deploy/enterprise-deployment/license-server.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
