# If the server displays an error indicating that port 3000 is in use, how can I resolve this issue?

When you see an error stating port `3000` is already in use, it means another service is using that port or a previous BurpGPT session has not closed properly. To fix this, use the commands below to stop the current server before restarting BurpGPT:

{% tabs %}
{% tab title="Linux/Mac" %}

1. First, identify the process ID (PID) using:

```bash
sudo lsof -t -i :3000
```

2. Then, forcefully terminate the process by executing:

```bash
kill -9 <PID>
```

{% endtab %}

{% tab title="Windows" %}
Run the following command in `PowerShell` to terminate the process:

```powershell
$processId = Get-NetTCPConnection -LocalPort 3000 | Select-Object -ExpandProperty OwningProcess
Get-Process -Id $processId | Stop-Process -Force
```

{% endtab %}
{% endtabs %}

Alternatively, you can configure BurpGPT to use a different port by specifying a new port number in the `Listening port` field under the `Server` tab.
