> For the complete documentation index, see [llms.txt](https://docs.9proxy.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.9proxy.com/getting-started/residential-proxy-by-ips/for-linux/set-up-a-custom-port-range.md).

# Set Up a Custom Port Range

Follow these steps to configure your starting port and port range in 9Proxy Linux.

## 1. Start 9Proxy

To start 9Proxy, enter the following command:

```
systemctl start 9proxyd
```

To ensure 9Proxy starts automatically on boot, run:

```
systemctl enable 9proxyd
```

If you enable the service, you won't need to manually start it each time.

## 2. Sign In to Your Account

Follow the instructions here to sign in.

## 3. Set Starting Port & Port range&#x20;

Once signed in, configure your proxy ports:

### 3.1. To Set Starting Port

```
9proxy setting -s [start port]
```

* \[start port] : the desired starting port number

<figure><img src="https://1693667300-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNuuHdu9z8IgffZvLnM2A%2Fuploads%2FC1zySFRf43yLYoEGgiwF%2FStart-Port.png?alt=media&amp;token=6e728b6d-97aa-45ce-9af8-b51a7b6209a8" alt=""><figcaption></figcaption></figure>

### 3.2. To Set Port Range

```
9proxy setting -l [number of ports]
```

* \[number of ports] : the number of ports you want to allocate

<figure><img src="https://1693667300-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNuuHdu9z8IgffZvLnM2A%2Fuploads%2FBp1MGpUpGCJNyOwwjJR1%2FPort-range.png?alt=media&amp;token=a1a3a483-0b66-4f8d-bea1-489cd2acd303" alt=""><figcaption></figcaption></figure>
