# Zmiana portu Xopero ONE Management Service

## Windows

### <mark style="background-color:blue;">Plik JSON</mark>

#### Zmiana numeru portu w systemie Windows poprzez edycję pliku konfiguracyjnego:

1. Przejdź do folderu instalacyjnego **Management Service**. Domyślnie jest to:\
   `C:\Program Files\Xopero ONE Backup&Recovery`
2. Otwórz plik `appsettings.json` w edytorze tekstowym.
3. Wprowadź następujące zmiany:
   * Zmień nazwę sekcji `"commented_out_Kestrel"` na `"Kestrel"`.
   * Zmień numer portu, modyfikując parametr `"Url"`. Na przykład zastąp `"http://*:5000"` wybranym numerem portu (<mark style="color:$danger;">zmieniaj tylko wartość liczbową</mark>).
4. Zapisz zmiany.
5. Zrestartuj usługę **Xopero ONE Backup\&Recovery**, aby zastosować nowe ustawienia.

### <mark style="background-color:blue;">Edytor rejestru (regedit)</mark>

#### Zmiana numeru portu w systemie Windows za pomocą edytora rejestru:

1. Uruchom polecenie `regedit.msc`.
2. Przejdź do następującego klucza:

   <pre data-overflow="wrap"><code>Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\XoperoONEManagementService
   </code></pre>
3. W wartości `ImagePath`, zmień wartość liczbową parametru `--urls` na wybrany port.
4. Zapisz zmiany i zrestartuj usługę **Xopero ONE Backup\&Recovery**.

***

## Linux

#### Zmiana numeru portu w systemie Linux poprzez systemd:

1. Otwórz plik konfiguracyjny:

   ```
   /etc/systemd/system/XoperoONEManagementService.service
   ```
2. W sekcji `[Service]` edytuj linię **ExecStart** i zastąp wartość `28555` swoim numerem portu:

   ```
   ExecStart=/opt/XoperoONEManagementService/ManagementService --urls "http://*:28555"
   ```
3. Przeładuj konfigurację **systemd**:

   ```bash
   systemctl daemon-reload
   ```
4. Zrestartuj usługę **Management Service**, aby zastosować zmiany:

   ```bash
   systemctl restart XoperoONEManagementService.service
   ```


---

# 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://helpcenter.xopero.com/xopero-one-en/pl/rozwiazywanie-problemow/zmiana-portu-xopero-one-management-service.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.
