---
title: Connect to a server
description: 
---

## Connect

Open the **Services** > **XRay** tab.

Set the **Main Server** to your preferred server.

Enable the **Enable Transparent Proxy** option.

Select the (same) server for **TProxy UDP Server**.

Click **Save & Apply** to connect.

That's it!

## Disconnect

Open the **Services** > **XRay** tab.

Disable the **Enable Transparent Proxy** option.

Click **Save & Apply** to connect.

## Warning

You'll notice we did not change any settings on any of the other tabs. The out of the box configuration should work as-is. Once you start making changes on the other tabs, it will be impossible for us to provide proper support.

To reset your settings, simply [update to our latest config file](/zh/setup/routers/xray-for-openwrt/update-xray-packages).