Skip to content

Servers

Starcel runs as a client and as a dedicated server. main.py runs on both; use KismetSystemLibrary.IsDedicatedServer() to split the code.

Joining a server

  • Run connect() / client_travel() from Python,
  • edit _StartClient.bat, or
  • open the console (`) and type open <IP>.

Hosting

The server console lists its port, local IP and public IP. Share the local IP and port on your network, or forward the port in your router to make it public.

Servers run code

A Starcel server can run Python on your machine. Treat joining one like running unsigned code or giving someone remote desktop access. Use a whitelist, and be careful who you share your IP with.

Replication

Clients can't call functions on other clients directly. A client calls the server, and the server sends a multicast to everyone. An actor that should exist for every client must be spawned on the server.

Building the dedicated server

The Epic Games Launcher build of UE 4.27 can't build a dedicated server. You need the engine source from Epic's GitHub, which requires joining their developer program.