Skip to content
/SLASHPLAY

How to make a LAN server in CS2

Type sv_lan 1 in the server console to make the server LAN only, with no Steam authentication. Players outside your network cannot join.

sv_lan

Makes the server LAN only, with no Steam authentication or internet listing.

sv_lan <0|1>

Examples

sv_lan 1

LAN only.

sv_lan 0

Allow internet players.

Values

ValueWhat it does
0 Off
1 On

Arguments

0|1Required
1 turns it on, 0 turns it off. true and false also work.

What it does

Use it for local networks and offline events. Players from outside the local network cannot join.

The game's own description: Server is a lan server ( no heartbeat, no authentication, no non-class C addresses )

Run it on your server

On a SLASHPLAY server, type it in the Console tab of the server page; the reply shows right under it. A value set there lasts until the server restarts. To keep it, add the line to game/csgo/cfg/server.cfg. New to this? Start a CS2 server first.

Your own
CS2 server.

From $0.03 an hour, only while it runs. New accounts get 6 free tokens.