Alright @kiril-tomkovich, looks like you’re on quite the Counter-Strike 2 server adventure. Let’s sort this out bit by bit.
First, we need to determine if your server is reachable from the outside world. It’s telling that you can connect via a VPN but not externally, which hints at a network or firewall configuration issue.
Step 1: Check External IP Accessibility
-
Public IP Check:
- Head over to a site like whatismyip.com from the server itself to get the public IP address.
-
Port Forwarding:
- Ensure port 27015 is forwarded to the internal IP address of your server (e.g., 10.1.0.3) on your router.
-
Firewall Rules:
- On your Windows Server, make sure the firewall allows incoming connections on port 27015. You can add this rule using
Windows Defender Firewall with Advanced Security
.
- On your Windows Server, make sure the firewall allows incoming connections on port 27015. You can add this rule using
Once that’s sorted, try connecting again using the external IP. If it still doesn’t work, it’s time to check the server’s bind settings.
Step 2: Server Binding Configuration
You mentioned seeing localhost:27015
and 0.0.0.0:27015
in your server browser. The server should ideally bind to 0.0.0.0:27015
for external connections.
-
Configuration File Check:
- Open the server configuration file (usually named something like
server.cfg
). - Ensure it has the following lines:
host_name_store 1 host_info_show 2 host_players_show 2 sv_lan 0 sv_region 255 sv_setsteamaccount "YOUR_AUTH_TOKEN"
- Open the server configuration file (usually named something like
-
Verify and Restart Server:
- Update any settings as necessary, save the file, and restart the server.
Let’s give these steps a go. If you encounter any hiccups or need further guidance, feel free to ping me with the specific errors or behaviors noted.