# 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>
