# Changing Your s&box Server Name (/docs/sbox/change-server-name)



import { Step, Steps } from 'fumadocs-ui/components/steps';

The server name is whatever you pass to `+hostname` on the command line. It's the title players see in the in-game server browser.

Setting the Hostname [#setting-the-hostname]

Windows [#windows]

In your `.bat` file:

```bat
echo off
sbox-server.exe +game facepunch.sandbox facepunch.flatgrass +hostname My Dedicated Server
```

Linux [#linux]

In your shell script — wrap multi-word names in double quotes:

```bash
#!/bin/bash
./sbox-server.exe +game facepunch.sandbox facepunch.flatgrass +hostname "My Dedicated Server"
```

Changing the Name [#changing-the-name]

<Steps>
  <Step>
    Stop the Server [#stop-the-server]

    Stop the running server before editing the launch command.
  </Step>

  <Step>
    Edit the +hostname Value [#edit-the-hostname-value]

    Replace the text after `+hostname` with the new name. On Linux, keep the quotes if the name has spaces.
  </Step>

  <Step>
    Restart the Server [#restart-the-server]

    Start it again — the new name will appear in the server browser.
  </Step>
</Steps>

Related Guides [#related-guides]

* [Launch Parameters](/docs/sbox/launch-parameters)
* [Connect to Your Server](/docs/sbox/connect-to-your-server)
