# 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="/files/5Xdml1vzbgJONddbRsBa" 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="/files/zluAoAFTWiaj4FhJ129g" alt=""><figcaption></figcaption></figure>


---

# 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.9proxy.com/getting-started/residential-proxy-by-ips/for-linux/set-up-a-custom-port-range.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.
