---
title: "Setting Hostname on a Garry's Mod Server"
description: "Learn how to set the Hostname for your Garry's Mod server hosted with Nodecraft!"
source: "https://nodecraft.com/support/games/gmod/setting-hostname-on-a-garrys-mod-server"
image: "https://dynamic-assets.nodecraft.com/signedurl/w7vokBAexMnVlnMZ1Q/image.jpg?modifications=W3sibmFtZSI6ImdhbWVfYmciLCJpbWFnZV91cmwiOiJodHRwczovL2Ntcy1hLm5vZGVjcmFmdC5jb20vZi8xMzM5MzIvMjAwMHg1NTAvMTUwNTBiZWQ5OC9nbW9kLWxhbmRpbmctYmFubmVyLTEtMi0wLnBuZy9tLyJ9LHsibmFtZSI6ImdhbWVfbG9nbyIsImltYWdlX3VybCI6Imh0dHBzOi8vY21zLWEubm9kZWNyYWZ0LmNvbS9mLzEzMzkzMi8zNzV4MTUwL2YzMDc4YjljM2UvbG9nby5wbmcvbS8ifSx7Im5hbWUiOiJjdGFfdGV4dCIsInRleHQiOiJDcmVhdGUgeW91ciBvd24gc2VydmVyISJ9LHsibmFtZSI6InRleHQiLCJ0ZXh0IjoiU2V0dGluZyBIb3N0bmFtZSBvbiBhIEdhcnJ5J3MgTW9kIFNlcnZlciJ9XQ&s=0ebea2ffec650677d0ecee4dbbc1a23751165b53f5ecc4e637e8002c1495655b"
published: "2018-08-28T19:50:43.940Z"
updated: "2018-08-30T19:39:00.000Z"
---

# Setting Hostname on a Garry's Mod Server

Learn how to set the Hostname for your Garry's Mod server hosted with Nodecraft!

## Setting Hostname of a Server  in Garry's Mod

Changing the hostname of the server is done by editing the` server.cfg` file, which is located in the folder `garrysmod/cfg`

Click on file manager on the left side of the Nodecraft server control panel, click on the the folder **garrysmod**, and then on the folder **cfg**.

Locate the file `server.cfg`, select it, and then click the button **edit** that appears at the top of the file manager window.

![A view of the file manager for a garry's mod server, showing the location of the file "server.cfg"](https://s3-assets.nodecraft.com/attachments/nScCQsATCCdJjzxbZtFW_Server_config_warrows.png)

After you select the `server.cfg` file, and click edit, you will see the following.

Normally this file is "empty", with no settings visible (unless you have already added some).

![A view of a stock garrys mod server.cfg file, which is normally found empty](https://s3-assets.nodecraft.com/attachments/RoBpHkBSRzmqUsTsPqQm_Server_config_empty.PNG)

On the first empty line, add the following text:

```
hostname "`servernamehere`"
```

Replace `servernamehere` with the name you want your Garry's Mod server to show up as in game listings.  The text must be between quotation marks.

Click save in the upper right corner of the file manager, and restart the server for these changes to take place
