Directly Download Server Files and Run#
Here are some server files automatically built by Github Action, covering the following systems and architectures
You can also go to Multiplayer Server | Dmocken's Phira Download Station to find them yourself.
Look for files suitable for your system, download them, and execute. The default server will open on port 12346 of your host. If you need to customize the port, please use the --port
parameter to specify the port. Then you can use Phira to fill in IP/domain to connect.
Since phira-mp uses the Log module that comes with Rust, if you need logs, please install Rust yourself. After ensuring that you have installed the Rust environment, you can use RUST_LOG=info phira-mp server
to obtain logs.
Build Yourself (Advanced)#
Since phira-mp is written in Rust, if you want to build it yourself, you need to install the Rust environment on your operating system.
For Windows#
Go to Rust Download Page and download Rust.
After opening, a CMD window will pop up. Enter 1 (Quick Install) and press Enter, then wait for Visual Studio to install (if this step is slow, you can also download manually).
In Visual Studio, check Desktop development with C++, and then install.
For Linux#
Execute: curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
Select 1 and press Enter.
Execute: source $HOME/.cargo/env
Use Rust to Build phira-mp#
Clone the repository: git clone https://github.com/TeamFlos/phira-mp.git
(IPv6 not supported) or git clone https://github.com/afoim/phira-mp-autobuild.git
(IPv6 supported).
cd phira-mp
or cd phira-mp-autobuild
Update dependencies: cargo update
Build: cargo build --release -p phira-mp-server
Run the program and print logs to the terminal, which will show the port you are listening to: RUST_LOG=info target/release/phira-mp-server
(If you need to specify the port number: RUST_LOG=info target/release/phira-mp-server --port 8080
)