Stellar Bit is a community-driven game that empowers players to create their own servers with customized objectives and features. Hosting your own server allows you to define unique gameplay experiences, set custom rules, and build a community around your vision of the game.
This guide will walk you through the process of creating both public and private servers in Stellar Bit. Whether you want to host a server accessible to all players or set up a private playground for a select group, this tutorial has you covered.
There are two types of servers you can create in Stellar Bit:
Public Servers: Accessible by anyone with an official Stellar Bit account. These servers are listed on the Stellar Bit Central Hub and can incorporate authentication and authorization features.
Private Servers: Not listed publicly and do not require authentication. Ideal for small groups or testing purposes.
Log In to Your Account
Navigate to 'My Servers'
Create a New Server Entry
Note: At this point, your server is registered but not yet online.
To make your server operational, you need to run the server software and keep it connected to the Stellar Bit Central Hub.
Using the Server Template with Authentication
A pre-built template is available to simplify the process:
Download the Template
Clone or download the repository to your local machine:
git clone https://github.com/stellar-bit/server-template-auth.git
Open the Template in Your Code Editor
Configure Server Settings
src/lib.rs
file.SERVER_ADDR
and SERVER_NAME
.
SERVER_ADDR
: Set this to your server's public IP address and port (e.g., "0.0.0.0:12345"
).SERVER_NAME
: Ensure this matches the name you registered on the Stellar Bit website.Compile and Run the Server
Open a terminal in the project directory.
Run the following command to compile and start the server:
cargo run --release
Authenticate Your Server
Keep the Server Running
Connect Using the Stellar Bit Client
Creating a private server is similar to a public server but without the need for an official Stellar Bit account or authentication.
Using the Private Server Template
Download the Template
Clone or download the repository to your local machine:
git clone https://github.com/stellar-bit/server-template.git
Open the Template in Your Code Editor
Configure Server Settings
src/lib.rs
file.SERVER_ADDR
.
SERVER_ADDR
: Set this to your server's public or local IP address and port (e.g., "0.0.0.0:12345"
).Compile and Run the Server
Open a terminal in the project directory.
Run the following command to compile and start the server:
cargo run --release
Note: Since this is a private server, you won't need to enter any credentials.
Distribute Your IP Address
Connect Using the Stellar Bit Client
Creating your own server isn't just about hosting; it's also about crafting unique gameplay experiences. You can modify the server logic to introduce new features, rules, and objectives.
Official FFA Server Source Code
For inspiration and reference, check out the source code of the official Free-For-All (FFA) server:
Understand the Existing Code
Plan Your Changes
Modify the Code
Test Thoroughly
After making changes, recompile and run your server:
cargo run --release
Connect with a client to test the new features.
Invite others to help test and provide feedback.
Iterate
Backup Regularly
Use Version Control
Community Resources
Purpose
For Public Servers
For Private Servers
Firewall Settings
Port Forwarding
Static IP Address
Hosting your own Stellar Bit server opens up a universe of possibilities. Whether you're aiming to build a massive multiplayer arena or a private sandbox for friends, this guide provides the foundation to get you started.
Remember:
Happy hosting, and may your server bring new adventures to the Stellar Bit universe!