Running Phira multiplayer server on Android
Using a pre-built binary
- Download and install ZeroTermux (Termux also works).
- Run
apt update && apt upgrade. - Copy the pre-built binary URL from Phira download site.
- Run
wget [url]to download. - Run
./phira-mp-serverorRUST_LOG=debug ./phira-mp-serverto start (second adds logging). - To use a custom port, add
--port [port], e.g.RUST_LOG=debug ./phira-mp-server --port 11451. - For public access, set up port forwarding or a tunnel yourself.
Building the server yourself
- Install ZeroTermux (or Termux).
- Open ZeroTermux, accept the agreement, swipe from the left edge and tap the menu to switch source (e.g. Tsinghua mirror); press Enter for Y/I/N prompts several times.
- Run
pkg install rust. - Run
pkg install pkg-config. - Run
pkg install git. - Run
git clone https://github.com/TeamFlos/phira-mp.git(use a proxy if needed). - Run
chmod -c 755 phira-mp. - Run
cd phira-mp. - Run
cargo update. - Run
cargo build --release -p phira-mp-server(orcargo runto run directly). - The binary will be in
/data/data/.../phira-mp/target/release(path depends on Termux).
Restarting the server
- In ZeroTermux, go to the folder with
phira-mp-serverand run./phira-mp-server. If you built from source, the binary is underphira-mp/target/release.
FAQ
- If you see
warning: spurious network error (3 tries remaining)... HTTP/2 stream...during build, try enabling a VPN and running the build again. - Build can take a long time; ensure a stable network.
- For doc errors, contact @Dmocken in the Phira QQ channel or use Feedback.