Deadswitch Combat

Deadswitch Combat

评价数不足
Host a Game Server
由 Wilkin 制作
Want to host your own Deadswitch Combat server? Check out this guide!
   
奖励
收藏
已收藏
取消收藏
Overview
Hosting your own Deadswitch Combat server is easy!

Requirements
Make sure Node v20+ is installed on the machine you want to host the server.

If you are hosting on your PC, you can download it here: https://nodejs.org/en/download
Installation + Start
LAN
If you want to host the server locally (for LAN games), install the Deadswitch Combat Multiplayer Server tool in your Steam library. It's automatically included when you install Deadswitch Combat.

Click the Launch button to start the server!

Or use this URL: steam://launch/4040630

Note: Only players on your local network will be able to join. You can use a service like Hamachi to connect to LAN servers (see below).

Connect to LAN servers with Hamachi

Make sure Hamachi is installed on each player’s PC.

Host
As the host, start the LAN server (click Launch).

Create a network and invite any friends you want to join.



If you can't connect, adjust your firewall settings:
  • Go to Windows Firewall > Advanced Settings
  • Public Profile (assuming your Hamachi Network is public)
  • Protected Network Connections
  • Make sure Hamachi is unchecked
  • Apply changes


Make sure all players complete this if needed.

Join via Hamachi
Join the Hamachi Network created by the host. The IP will be different for you, but let's assume it's 127.0.0.1 for this guide. The default port is 9200.

All players can connect to the server IP when the server is running (eg 127.0.0.1:9200).

In game, go to Home > Server Browser > Connect to URL and enter http://127.0.0.1:9200 (don't forget the http://).

Internet / VPS
If you want to host the server for easier and wider access, you can clone the repository on the target machine (like a cloud server). You can also copy the contents from the Multiplayer Server tool directly to your server. Make sure Node is installed on the server.

Currently the repo requires an invite, so contact wilkingames on Discord for access!

Run these commands on the server:

Clone the server code:

Go into the newly created directory:
cd dsc-mp-custom

Start the server:
node server.cjs

Your server is now online!

PM2
You can use PM2 to keep your server online and restart it automatically if it crashes for any reason.

pm2 start server.cjs --name dsc-server

More info: https://pm2.keymetrics.io/
Configuration
You can modify the server configuration in the MultiplayerServer/config.json file.

You can also use the Server Config tool: https://deadswitchcombat.com/tools/server-config

Make sure to restart the server after making any changes to the config file.
3 条留言
Wilkin  [作者] 10 月 12 日 上午 10:59 
Вы можете использовать это руководство, чтобы создать сервер, к которому сможет присоединиться ваш друг!
МЫШЪКА 10 月 12 日 上午 6:02 
такой же вопрос..
Moltisanti 10 月 11 日 下午 12:14 
КАК СОЗДАТЬ СЕРВЕР ЧТО БЫ ПОИГРАТЬ С ДРУГОМ В ИГРУ