<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://mindattic.com/wiki/docs/index.php?action=history&amp;feed=atom&amp;title=Unity.Multiplayer%2Farticles%2Fhosting%2Fgenericvps</id>
	<title>Unity.Multiplayer/articles/hosting/genericvps - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://mindattic.com/wiki/docs/index.php?action=history&amp;feed=atom&amp;title=Unity.Multiplayer%2Farticles%2Fhosting%2Fgenericvps"/>
	<link rel="alternate" type="text/html" href="https://mindattic.com/wiki/docs/index.php?title=Unity.Multiplayer/articles/hosting/genericvps&amp;action=history"/>
	<updated>2026-12-05T12:01:37Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.46.3</generator>
	<entry>
		<id>https://mindattic.com/wiki/docs/index.php?title=Unity.Multiplayer/articles/hosting/genericvps&amp;diff=921&amp;oldid=prev</id>
		<title>Docs Sync: md2wiki: sync from MindAttic.Docs</title>
		<link rel="alternate" type="text/html" href="https://mindattic.com/wiki/docs/index.php?title=Unity.Multiplayer/articles/hosting/genericvps&amp;diff=921&amp;oldid=prev"/>
		<updated>2026-11-29T20:36:54Z</updated>

		<summary type="html">&lt;p&gt;md2wiki: sync from MindAttic.Docs&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;= Hosting on a generic VPS (GenericVps) =&lt;br /&gt;
&lt;br /&gt;
The default profile (UM-T23): your server package runs as a Docker container beside the rendezvous service on any UDP-capable Linux VPS you already have -- Hetzner, Vultr, DigitalOcean, OVHcloud, a home box behind a forwarded port, anything with SSH and a public IPv4 address. There is no cloud API involved: &amp;lt;code&amp;gt;mp-host&amp;lt;/code&amp;gt; (UM-T25) treats the box as already provisioned and configures it over SSH.&lt;br /&gt;
&lt;br /&gt;
== What &amp;lt;code&amp;gt;mp-host deploy&amp;lt;/code&amp;gt; does here ==&lt;br /&gt;
&lt;br /&gt;
# Builds (or reads an already-built) server package and its Docker image, then pushes the image to GHCR (&amp;lt;code&amp;gt;ghcr.io/&amp;amp;lt;owner&amp;gt;/&amp;amp;lt;repo&amp;gt;:&amp;amp;lt;tag&amp;gt;&amp;lt;/code&amp;gt;).&lt;br /&gt;
# Renders a &amp;lt;code&amp;gt;docker-compose.yml&amp;lt;/code&amp;gt; that runs your pushed image beside &amp;lt;code&amp;gt;mindattic/rendezvous&amp;lt;/code&amp;gt; (the join-code service from UM-T12), uploads it over SSH.&lt;br /&gt;
# Uploads a one-shot bootstrap script that installs Docker if it&amp;#039;s missing, logs into GHCR with a token piped over stdin (never on the command line, never written to the repo), pulls both images and runs &amp;lt;code&amp;gt;docker compose up -d&amp;lt;/code&amp;gt;.&lt;br /&gt;
# Best-effort opens the game port in &amp;lt;code&amp;gt;ufw&amp;lt;/code&amp;gt; if it&amp;#039;s present (&amp;lt;code&amp;gt;ufw allow &amp;amp;lt;port&amp;gt;/udp&amp;lt;/code&amp;gt;); this is your box, so if you manage the firewall some other way mp-host only warns, it does not fail the deploy.&lt;br /&gt;
# Polls &amp;lt;code&amp;gt;GET http&amp;amp;#58;//127.0.0.1:&amp;amp;lt;healthPort&amp;gt;/healthz&amp;lt;/code&amp;gt; &amp;lt;strong&amp;gt;on the box itself&amp;lt;/strong&amp;gt; over SSH (the compose file binds the health port to &amp;lt;code&amp;gt;127.0.0.1&amp;lt;/code&amp;gt;, so it isn&amp;#039;t reachable from the internet).&lt;br /&gt;
# Watches &amp;lt;code&amp;gt;docker compose logs game&amp;lt;/code&amp;gt; for the line the server itself prints once it has self-registered with rendezvous: &amp;lt;code&amp;gt;[MindAttic.Multiplayer] Join code: ABC-DEF-GHJ&amp;lt;/code&amp;gt;, and prints it.&lt;br /&gt;
&lt;br /&gt;
== Before you deploy ==&lt;br /&gt;
&lt;br /&gt;
Rent a small VPS (1 vCPU / 1-2 GB RAM is plenty for most game servers) with Docker-capable Linux and a public IPv4 address, and make sure you can SSH into it with a key (password auth is not supported).&lt;br /&gt;
&lt;br /&gt;
Store its connection details and your GHCR token in the vault -- never in the repo, never on a shared command line:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre class=&amp;quot;md-code&amp;quot;&amp;gt;mp-host credentials set-ssh --name prod-box --host 203.0.113.5 --user deploy --key C:\Users\me\.ssh\id_ed25519&lt;br /&gt;
mp-host credentials set-ghcr --username &amp;amp;lt;github-username&amp;gt; --token &amp;amp;lt;PAT with write:packages&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then deploy:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre class=&amp;quot;md-code&amp;quot;&amp;gt;mp-host deploy --profile GenericVps --name prod-box --package ./build/GenericVps \&lt;br /&gt;
  --image myorg/mygame --tag v1 \&lt;br /&gt;
  --rendezvous-url http&amp;amp;#58;//203.0.113.5:8080 \&lt;br /&gt;
  --public-address 203.0.113.5&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Add &amp;lt;code&amp;gt;--dry-run&amp;lt;/code&amp;gt; first to see every SSH command, upload and docker call mp-host would make without touching the box.&lt;br /&gt;
&lt;br /&gt;
== Open ports ==&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Port&lt;br /&gt;
! Protocol&lt;br /&gt;
! Purpose&lt;br /&gt;
|-&lt;br /&gt;
| your game port&lt;br /&gt;
| UDP (or TCP for WebSocket)&lt;br /&gt;
| Players connect here.&lt;br /&gt;
|-&lt;br /&gt;
| 8080&lt;br /&gt;
| TCP&lt;br /&gt;
| The rendezvous service: players resolve join codes here.&lt;br /&gt;
|-&lt;br /&gt;
| health port&lt;br /&gt;
| TCP, bound to 127.0.0.1&lt;br /&gt;
| &amp;lt;code&amp;gt;GET /healthz&amp;lt;/code&amp;gt;; not reachable from the internet by design. Open it yourself only for an outside monitor.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Updating and tearing down ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;mp-host update --profile GenericVps --name prod-box --server-id deploy@203.0.113.5:22 --image myorg/mygame --tag v2 ...&amp;lt;/code&amp;gt; re-renders the compose file, pulls the new image and runs &amp;lt;code&amp;gt;docker compose up -d&amp;lt;/code&amp;gt; in place -- an in-place rolling restart, not a new box. &amp;lt;code&amp;gt;mp-host destroy ... --yes&amp;lt;/code&amp;gt; runs &amp;lt;code&amp;gt;docker compose down -v&amp;lt;/code&amp;gt;; the VPS itself is yours to keep or cancel.&lt;br /&gt;
&lt;br /&gt;
== Cost and sizing notes ==&lt;br /&gt;
&lt;br /&gt;
Any provider&amp;#039;s smallest CPU-only VPS tier is enough for most turn-based or small-lobby real-time games (a handful of players, modest tick rate). Pick a region close to your players; UDP and WebSocket game traffic is otherwise usually the cheapest part of the bill compared to CPU/RAM. Check your provider&amp;#039;s bandwidth allowance if you expect many concurrent matches -- a long-running Discord voice-adjacent game server can add up over a month in a way a burst workload won&amp;#039;t.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;md2wiki-crumb&amp;quot;&amp;gt;Part of [[Unity.Multiplayer]].&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;md2wiki-source&amp;quot;&amp;gt;From [https://github.com/mindattic/Unity.Multiplayer/blob/main/docs/articles/hosting/genericvps.md Unity.Multiplayer/docs/articles/hosting/genericvps.md] via MindAttic.Docs; synced automatically, so edit the repo, not this page.&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Unity.Multiplayer]]&lt;/div&gt;</summary>
		<author><name>Docs Sync</name></author>
	</entry>
</feed>