How to Create a Stardew Valley Server Guide

From Survival Servers
Revision as of 14:19, 10 August 2026 by Ryan (talk | contribs) (Stardew Valley server setup guide)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Stardew Valley has no official dedicated server tool - vanilla co-op only exists while the host player is in the game. This guide covers keeping a farm online around the clock yourself on your own hardware, and the instant alternative at the end.

Before you start

A Stardew Valley "server" is a full copy of the game running as the host player on a machine that never turns off. That means the server machine needs its own PC copy of the game (Steam or GOG), SMAPI (the Stardew Modding API), and a host-automation server mod that plays the host for you - going to bed at night, handling festivals, and pausing time when the farm is empty. It listens on one UDP port, 24642 by default.

Setting up an always-on farm

  1. Install Stardew Valley and SMAPI on the machine that will stay online. The game renders normally, so it wants a real desktop session rather than a bare headless box.
  2. Install a host-automation mod. The two community options are the Always On Server SMAPI mod (runs inside your normal game install) and the JunimoServer project (a Docker stack that bundles the game, SMAPI and the automation together).
  3. Create the multiplayer farm: from the title screen choose Co-Op, then the Host tab, then Host New Farm. Add one cabin for each friend who will join - on PC the farm supports up to 7 cabins, and Robin can build more later for 100g each, instantly.
  4. Forward UDP port 24642 on your router to the host machine and allow it through the firewall.
  5. Friends join from Co-Op → Join LAN Game with your public IP and port, or through Steam/GOG invite codes while the host's store session is online.

Things to plan for

  • Saves commit at the end of the day. Stardew Valley writes its save when everyone sleeps, so anything since the last completed day is lost if the machine goes down mid-day. Saves live under %AppData%\StardewValley\Saves on Windows - back that folder up on a schedule.
  • Versions must match. The host's game version, SMAPI, and any gameplay mods have to stay in step with every player's client, so each game update is a coordination job.
  • The host is a player. Without automation the host character stands in the farmhouse forever, never sleeps, and blocks the day from ending - the automation mod is not optional.
  • PC players only. Steam and GOG players on Windows, Mac, and Linux can all share one farm, but console players cannot join a PC farm.

The instant alternative

If you would rather skip the always-on PC, the port forwarding, and the mod babysitting, Stardew Valley server hosting from Survival Servers keeps your farm online 24/7 on datacenter hardware. Friends join with a vanilla client from the normal co-op menu using your server address, time pauses automatically when nobody is on, and the day's save is backed up with full FTP access to your files.