---
title: "ports in config.yaml"
url: https://devlanes.run/docs/reference/config/user/ports/
description: "Reference for the ports key in ~/.devlanes/config.yaml."
---

# ports in config.yaml

A top-level key of [`~/.devlanes/config.yaml`](/docs/reference/config/user/).

## `ports`

Type: mapping.

Port range that every lane of every project takes its block of ports from, so lanes never collide. Defaults to `20000-32767`.

```yaml devlanes-user
ports:
  range: 20000-32767
```

### `ports.range`

Type: string. Default: `20000-32767`.

Ports devlanes may hand out, written `start-end` (both included, start above 0); defaults to `20000-32767`, below Linux's usual ephemeral range so the OS does not pick them for outgoing connections. Each lane of each project gets its own block of consecutive ports from it, so a smaller range fits fewer lanes.

```yaml devlanes-user
ports:
  range: 20000-32767
```
