Guide

How to host a CS2 practice server for friends no port forwarding

Learn the easiest way to host a CS2 dedicated server on Windows to practice smokes or play 1v1 with friends far away. Fix 'connection failed after 30 retries' errors.

Counter-Strike 2
Counter-Strike 2
Quick start

PortPlay is a global proxy service that publishes your local game server through port tunneling. You do not need a public IP from your ISP. Jump straight to PortPlay installation.

Warning

If you create a server from inside the game, other players usually will not be able to connect. The server may appear inside the PortPlay app, but the connection itself will fail.

Easiest way to host a CS2 dedicated server on Windows

PortPlay.net solves the biggest problem of modern CS2: Valve removed easy listen servers for friends. Now you need a dedicated server, but without a static IP, you can't share it. Instead of configuring your router and paying for a static IP, you install the PortPlay client and your server becomes reachable through an external address.

Why PortPlay is useful
  • No router configuration required
  • Works with almost any ISP
  • Automatically detects running servers
  • Includes a free plan to get started

Install PortPlay

1

Download the client

Download the client from the official website: PortPlay.net

2

Install and launch it

Install the application and launch it.

3

Create an account

Sign up and log in. You can usually use a Google account for a faster setup.

Ready to go

After registration you will land in the main PortPlay window. Now you can launch your Counter-Strike 2 server.

Method 1: Dedicated CS2 server (recommended)

Recommended method

This is the best option if you want the server to stay online even when you are not actively playing.

Step 1: Launch the dedicated CS2 server

Go to the folder where the CS2 executable is located:

Example path
steam\steamapps\common\Counter-Strike Global Offensive\game\bin\win64

Then open Command Prompt in that folder. Click the Explorer address bar, type cmd, and press Enter. You should get a console window like the one shown in the screenshot below:

Console window used to launch the server
Console window used to launch the server

Make sure the server is started with the correct parameters:

Launch CS2 server
cs2.exe -dedicated -port 27015 -console -usercon +sv_lan 1 +map de_dust2 +maxplayers 8 +game_type 0 +game_mode 0
Running CS2 server
Running CS2 server
Important
  • The +sv_lan 1 parameter is required for PortPlay to work correctly
  • The server must be running and reachable locally before you publish it

Step 2: Remove bots

Remove bots
bot_kick

The bot_kick command removes all bots from the lobby. You can skip this if you want to keep bots enabled.

Removing bots
Removing bots

Step 3: Publish the server through PortPlay

1

Open PortPlay

Select Counter-Strike 2 in the games list.

PortPlay should automatically detect the running CS2 server on port 27015.

PortPlay application
PortPlay application
2

Connect the server

Click Create and connect or Connect server.

3

Copy the external address

PortPlay will generate an external address such as 123.234.231.222:12345.

Server address used for player connections
Server address used for player connections

Step 4: Let players join

Your friends can join through the CS2 console:

Connect to the server
connect 5.188.88.8:36552

Important CS2 client settings

For players who want to join

1

Open the console

Press the ~ key.

If the console does not open, enable the developer console in the game settings:

Settings > Game > Enable Developer Console > Yes

2

Enter the connection command

Type the connection command in the console.

Connection format
connect address:port

For example:

Example connection
connect 123.234.231.222:12345
Connecting through the CS2 console
Connecting through the CS2 console
3

Press Enter

After that, you are on the server and your friends can join the same match. Everyone can play at the same time.

If players cannot connect

  • Make sure the server is running and available locally
  • A temporary issue may be fixed by reconnecting the tunnel in PortPlay
  • If you configured a password with sv_password, share it with your friends as well

Common problems and fixes

CS2 connection failed after 30 retries local server fix?

This error happens when your friend tries to join your local IP or your public IP, but your router blocks the connection. PortPlay fixes this by creating a secure tunnel, giving you an external IP:Port that your friends can use to join instantly without the '30 retries' timeout.

How to play 1v1 in CS2 with a friend far away?

Setting up a 1v1 server in CS2 requires a dedicated server (since listen servers are restricted). Follow our guide above to run cs2.exe -dedicated, start the server with a workshop aim map, and publish it via PortPlay so your friend can join from anywhere.

LogMeIn Hamachi alternative for gaming 2026?

PortPlay is a great modern alternative to Hamachi. The main difference is that your friends don't need to install PortPlay—only the server host needs it. Your friends simply copy the IP address and connect directly via the game console.

How do I change the map on the server?

Use the server console. Type map de_mirage or changelevel de_inferno.

Done

After these steps, your friends should be able to connect to your CS2 server through PortPlay even if you do not have a public IP address.