New

EmeraldHost 2.0 is here: faster, more intuitive, and made for everyone - the new panel!

Learn more
Guides
How to Kick and Ban Players on Your Garry's Mod Server
Garry's ModGarry's ModKick & Ban Players

How to Kick and Ban Players on Your Garry's Mod Server

Kick and ban players on a Garry's Mod server

2 min read
Jul 30, 2026

You can kick and ban players through the server console in the dashboard. Garry's Mod uses the standard Source Engine commands for this.

List the players

  1. Open the server console
    Open the console of your server via the dashboard.

  2. Show the player list
    Enter the following command:

    status
    

    The output shows the userid, the SteamID in the format STEAM_0:x:xxxxxxx and the IP address for every connected player. You need these values for the commands below.

Kick a player

A kicked player is removed from the server but can rejoin immediately.

kick <Name>
kickid <userid> Reason

Instead of the userid you can also use the SteamID:

kickid STEAM_0:1:12345678 Reason

Ban a player

banid <minutes> <userid> kick

Here too you can use the SteamID instead of the userid:

banid 0 STEAM_0:1:12345678 kick

Ban an IP address

banip <minutes> <IP address>

Save bans permanently

  1. Save SteamID bans
    Enter the following in the server console:

    writeid
    

    The bans are written to the file /garrysmod/cfg/banned_user.cfg.

  2. Save IP bans
    Enter the following in the server console:

    writeip
    

    The bans are written to the file /garrysmod/cfg/banned_ip.cfg.

Unban a player

removeid STEAM_0:1:12345678
removeip <IP address>

Afterwards run writeid or writeip again so the change is saved permanently.

Command overview

Command Description
status Show all connected players with userid, SteamID and IP
kick <Name> Kick a player by player name
kickid <userid|SteamID> [reason] Kick a player by ID
banid <minutes> <userid|SteamID> [kick] Ban a player (0 = permanent)
banip <minutes> <IP> Ban an IP address
addip <minutes> <IP> Identical to banip
removeid <SteamID> Remove a ban for a SteamID
removeip <IP> Remove a ban for an IP address
writeid Save SteamID bans permanently
writeip Save IP bans permanently
Written byEmeraldHost Team
Last updated on Jul 30, 2026 Edit on GitHub

Did this article help you?

Your feedback helps us improve our guides.

Help shape the guides

€10.00 in credit for every new guide, €5.00 for every improvement.

Contact Support

Create a support ticket and our team will get back to you as soon as possible – personal and professional.

Go to Support
1257 members online

Discord Community

Connect with other players, get quick help from the community, and stay up to date with the latest news.

Join Discord
Garry's Mod

Ready to get started?

Rent your Garry's Mod Server now

Join our Discord community 1257 members online right now