# Configuring Firewalls

#### Ports used by Sansar

If you are having trouble updating or connecting to Sansar, you may need to configure your computer's or network's firewall (typically by [port forwarding](https://en.wikipedia.org/wiki/Port_forwarding)) to allow the use of certain ports by your computer.

The ports used by our services are as follows:

| TCP         | <ul><li>80</li><li>443</li></ul>          |
| ----------- | ----------------------------------------- |
| TCP and UDP | <ul><li>20000-20999 (inclusive)</li></ul> |

#### Disabling UDP

You can force Sansar to run without UDP by using the command line option:

**`-networking.useTcp=true`**

It is not ideal to use TCP only, and you may notice degraded performance. You should only attempt this solution if you believe UDP has been blocked by your network administrator and you cannot contact them to change your firewall's rules.

***

Have more questions? Join our [Discord!](https://discord.gg/sansarofficial)


---

# 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.sansar.com/latest/sansarbasics/installationandcompatibility/configuring-firewalls.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.
