# Source Engine

## Default ports

Both Source engine and GoldSrc engine use the following ports by default.

* Game Port: 27015
* Query Port: 27015
* RCON Port: 27015
* Client Port: 27020&#x20;
* Source TV: 27005

## Static Port Mapping (NAT/Docker)

The port that is configured in the start parameters *must* be the port that is exposed to the Internet. This is because the game server reports the port that it is configured in start parameters to use to the master server. If this does not match the game client will not be able to connect to the server.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      &#x20;

<figure><img src="https://1934041264-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LJf1_IiU2L1vVxT7iNe%2Fuploads%2FlayCM7zTbHtPkfAO0Zb9%2Fsrcds_ports.jpg?alt=media&#x26;token=bedca33b-81ea-4d30-8956-633bc5d0c391" alt=""><figcaption><p>Changing port using Docker or firewall</p></figcaption></figure>

<figure><img src="https://1934041264-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LJf1_IiU2L1vVxT7iNe%2Fuploads%2FgqJJDOp6YPDdXAmLiBWI%2Fsdcds_ports_2.jpg?alt=media&#x26;token=576395fb-72fb-4539-be11-0343c1997449" alt=""><figcaption><p>Changing port using the start parameters</p></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.linuxgsm.com/networking/source-engine.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.
