<?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</id>
	<title>Unity.Multiplayer/articles/hosting - 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"/>
	<link rel="alternate" type="text/html" href="https://mindattic.com/wiki/docs/index.php?title=Unity.Multiplayer/articles/hosting&amp;action=history"/>
	<updated>2026-12-05T08:52:17Z</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&amp;diff=911&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&amp;diff=911&amp;oldid=prev"/>
		<updated>2026-11-29T20:36:39Z</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 =&lt;br /&gt;
&lt;br /&gt;
Every dedicated-server option in Unity.Multiplayer runs the same provider-neutral server package (UM-T23: a self-contained Linux build with &amp;lt;code&amp;gt;server.json&amp;lt;/code&amp;gt;, declared ports, &amp;lt;code&amp;gt;Logs/&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;Saves/&amp;lt;/code&amp;gt;, clean SIGTERM shutdown and a health endpoint) through the same &amp;lt;code&amp;gt;mp-host&amp;lt;/code&amp;gt; pipeline (UM-T25: build -&amp;gt; push to GHCR -&amp;gt; provision -&amp;gt; boot the container(s) -&amp;gt; open ports -&amp;gt; health check -&amp;gt; register with rendezvous -&amp;gt; print join code). Choosing a host later never changes game code; it only changes which &amp;lt;code&amp;gt;IHostingProfile&amp;lt;/code&amp;gt;/&amp;lt;code&amp;gt;IProvisioner&amp;lt;/code&amp;gt; &amp;lt;code&amp;gt;mp-host&amp;lt;/code&amp;gt; uses. This page is the map of that hosting table: how to pick a path, what&amp;#039;s common to all of them (ports, secrets, TLS, updates), and where each provider&amp;#039;s own page covers its specifics. See [[Unity.Multiplayer/rfc/0001-architecture#Hosting|RFC 0001 § Hosting]] for the design this table implements.&lt;br /&gt;
&lt;br /&gt;
== Deploy any game with one command (&amp;lt;code&amp;gt;mp-host game&amp;lt;/code&amp;gt;) ==&lt;br /&gt;
&lt;br /&gt;
A game built on Unity.Multiplayer needs no deploy script and no build method of its own (UM-T58). Install &amp;lt;code&amp;gt;mp-host&amp;lt;/code&amp;gt; once as a .NET tool, then point it at the Unity project:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre class=&amp;quot;md-code lang-powershell&amp;quot;&amp;gt;# once per machine, from a Unity.Multiplayer checkout: packs into C:\LocalNuGet and installs mp-host on PATH&lt;br /&gt;
powershell -File tools/install-mp-host.ps1&lt;br /&gt;
# (equivalent: dotnet pack src/Hosting.Cli -c Release -o C:\LocalNuGet&lt;br /&gt;
#              dotnet tool install -g MindAttic.Unity.Multiplayer.Hosting.Cli --add-source C:\LocalNuGet)&lt;br /&gt;
&lt;br /&gt;
cd &amp;amp;lt;your Unity project&amp;gt;&lt;br /&gt;
mp-host game local                       # build the server, run it + rendezvous on this PC (Docker)&lt;br /&gt;
mp-host game down                        # stop it&lt;br /&gt;
mp-host game deploy --dry-run            # see every step of a hosted deploy without doing any of it&lt;br /&gt;
mp-host game deploy                      # GenericVps (default): build, push to GHCR, deploy, print the join code&lt;br /&gt;
mp-host game deploy --profile RunPod --rendezvous-url http&amp;amp;#58;//&amp;amp;lt;vps&amp;gt;:8080&lt;br /&gt;
mp-host game status &amp;amp;#124; logs &amp;amp;#124; update &amp;amp;#124; destroy --yes   # the profile this project last deployed with&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
What it works out from the project, so nothing is per-game:&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Value&lt;br /&gt;
! Default&lt;br /&gt;
! Override&lt;br /&gt;
|-&lt;br /&gt;
| Project&lt;br /&gt;
| the current folder&lt;br /&gt;
| &amp;lt;code&amp;gt;--project &amp;amp;lt;dir&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| Unity editor&lt;br /&gt;
| the exact &amp;lt;code&amp;gt;ProjectSettings/ProjectVersion.txt&amp;lt;/code&amp;gt; version, from &amp;lt;code&amp;gt;UNITY_HUB_EDITORS&amp;lt;/code&amp;gt;, Unity Hub&amp;#039;s editor list and install location, then &amp;lt;code&amp;gt;…/Unity/Hub/Editor/&amp;amp;lt;version&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
| &amp;lt;code&amp;gt;--unity &amp;amp;lt;exe&amp;gt;&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;UNITY_EDITOR&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| Server scene&lt;br /&gt;
| the first enabled scene in Build Settings&lt;br /&gt;
| &amp;lt;code&amp;gt;&amp;quot;scene&amp;quot;&amp;lt;/code&amp;gt; in &amp;lt;code&amp;gt;mp-host.json&amp;lt;/code&amp;gt;, or &amp;lt;code&amp;gt;--scene Assets/…/Main.unity&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| Server name&lt;br /&gt;
| &amp;lt;code&amp;gt;productName&amp;lt;/code&amp;gt;, slugged (&amp;lt;code&amp;gt;Unity.Cursory&amp;lt;/code&amp;gt; → &amp;lt;code&amp;gt;unity-cursory&amp;lt;/code&amp;gt;); &amp;lt;code&amp;gt;&amp;amp;lt;name&amp;gt;-local&amp;lt;/code&amp;gt; for Local&lt;br /&gt;
| &amp;lt;code&amp;gt;--name&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| Image&lt;br /&gt;
| &amp;lt;code&amp;gt;ghcr.io/&amp;amp;lt;ghcr user&amp;gt;/&amp;amp;lt;name&amp;gt;:latest&amp;lt;/code&amp;gt;&lt;br /&gt;
| &amp;lt;code&amp;gt;--image owner/repo&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;--tag&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| Public address&lt;br /&gt;
| GenericVps: the stored SSH target&amp;#039;s host; RunPod: cosmetic&lt;br /&gt;
| &amp;lt;code&amp;gt;--public-address&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| Rendezvous&lt;br /&gt;
| hosted: &amp;lt;code&amp;gt;http&amp;amp;#58;//&amp;amp;lt;public address&amp;gt;:8080&amp;lt;/code&amp;gt; beside the game; Local: a rendezvous container, built from the Unity.Multiplayer checkout the project&amp;#039;s &amp;lt;code&amp;gt;Packages/manifest.json&amp;lt;/code&amp;gt; points at by &amp;lt;code&amp;gt;file:&amp;lt;/code&amp;gt; (else &amp;lt;code&amp;gt;ghcr.io/mindattic/rendezvous&amp;lt;/code&amp;gt;)&lt;br /&gt;
| &amp;lt;code&amp;gt;--rendezvous-url&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;--rendezvous-image&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;--no-rendezvous&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| Package&lt;br /&gt;
| built into &amp;lt;code&amp;gt;Builds/ServerPackage/&amp;amp;lt;profile&amp;gt;&amp;lt;/code&amp;gt; (log beside it)&lt;br /&gt;
| &amp;lt;code&amp;gt;--skip-build&amp;lt;/code&amp;gt; reuses it, &amp;lt;code&amp;gt;--package &amp;amp;lt;dir&amp;gt;&amp;lt;/code&amp;gt; uses another&lt;br /&gt;
|-&lt;br /&gt;
| Profile&lt;br /&gt;
| &amp;lt;code&amp;gt;game deploy&amp;lt;/code&amp;gt;: &amp;lt;code&amp;gt;&amp;quot;profile&amp;quot;&amp;lt;/code&amp;gt; in &amp;lt;code&amp;gt;mp-host.json&amp;lt;/code&amp;gt;, else GenericVps. &amp;lt;code&amp;gt;game status&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;logs&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;update&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;destroy&amp;lt;/code&amp;gt;: the profile this project last deployed with from this machine (&amp;lt;code&amp;gt;game local&amp;lt;/code&amp;gt; counts as Local), else the same as deploy&lt;br /&gt;
| &amp;lt;code&amp;gt;--profile&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| Server id&lt;br /&gt;
| remembered from the last &amp;lt;code&amp;gt;game deploy&amp;lt;/code&amp;gt; to that profile on this machine&lt;br /&gt;
| &amp;lt;code&amp;gt;--server-id&amp;lt;/code&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The build is the library&amp;#039;s own batch entry point, &amp;lt;code&amp;gt;Unity -batchmode -executeMethod Unity.Multiplayer.Editor.ServerPackageBuild.BuildFromCommandLine -serverScene &amp;amp;lt;scene&amp;gt; …&amp;lt;/code&amp;gt;: it opens the scene first, so &amp;lt;code&amp;gt;server.json&amp;lt;/code&amp;gt; carries that scene&amp;#039;s whole NetBootstrap (UM-T50) and the scene boots first. &amp;lt;code&amp;gt;--profile&amp;lt;/code&amp;gt; takes every profile below (&amp;lt;code&amp;gt;Local&amp;lt;/code&amp;gt; is the same as &amp;lt;code&amp;gt;game local&amp;lt;/code&amp;gt;); &amp;lt;code&amp;gt;--server-password&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;--env KEY=VALUE&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;--region&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;--size&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;--development&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;--upnp&amp;lt;/code&amp;gt; pass through. On Windows with Docker Desktop in Windows-containers mode, &amp;lt;code&amp;gt;game&amp;lt;/code&amp;gt; uses Docker Desktop&amp;#039;s Linux engine for that run.&lt;br /&gt;
&lt;br /&gt;
An optional &amp;lt;strong&amp;gt;&amp;lt;code&amp;gt;mp-host.json&amp;lt;/code&amp;gt;&amp;lt;/strong&amp;gt; at the project root sets defaults for any option (a flag always wins), e.g. &amp;lt;code&amp;gt;{ &amp;quot;name&amp;quot;: &amp;quot;cursory&amp;quot;, &amp;quot;image&amp;quot;: &amp;quot;mindattic/unity-cursory&amp;quot; }&amp;lt;/code&amp;gt;. The repo&amp;#039;s own &amp;lt;code&amp;gt;run.ps1&amp;lt;/code&amp;gt;, if it keeps one for the &amp;lt;code&amp;gt;/deploy&amp;lt;/code&amp;gt; router, is then just &amp;lt;code&amp;gt;mp-host game deploy --project $PSScriptRoot @args&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;mp-host game smoke&amp;lt;/code&amp;gt; builds the same project as one Linux player and runs it as a dedicated server, the rendezvous service and N bots under Docker Compose, until every bot&amp;#039;s driver passes: see [[Unity.Multiplayer/articles/bots|Bots and end-to-end smoke tests]].&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;mp-host game&amp;lt;/code&amp;gt; resolves everything above and then runs the lower-level commands this page describes (&amp;lt;code&amp;gt;mp-host deploy&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;local up&amp;lt;/code&amp;gt;, …), printing each one, so those remain available for CI or a package built elsewhere.&lt;br /&gt;
&lt;br /&gt;
== Which path do you need? ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre class=&amp;quot;md-code&amp;quot;&amp;gt;Do you want one always-on dedicated server you rent/manage yourself?&lt;br /&gt;
├─ Yes, and it can have a UDP-reachable port&lt;br /&gt;
│   └─ GenericVps profile (the default) -- any UDP-capable Linux box with Docker + SSH.&lt;br /&gt;
│      Hetzner, Vultr, DigitalOcean, Linode/Akamai, OVHcloud, AWS EC2/Lightsail, GCE, Azure VM,&lt;br /&gt;
│      Fly.io and Oracle Cloud&amp;#039;s free tier all provision one of these for you; &amp;quot;bring your own box&amp;quot;&lt;br /&gt;
│      (a VPS you already rented, or your own home PC) uses the same profile directly.&lt;br /&gt;
│&lt;br /&gt;
├─ Yes, but the only host you want only exposes TCP/HTTP (RunPod)&lt;br /&gt;
│   └─ RunPod profile -- WebSocket transport over a RunPod-mapped TCP port, registered with&lt;br /&gt;
│      rendezvous the same way. See &amp;quot;The RunPod path&amp;quot; below.&lt;br /&gt;
│&lt;br /&gt;
├─ No -- I want a server spun up per match, on demand, and torn down after&lt;br /&gt;
│   └─ Edgegap, Gameye or AWS GameLift -- an `IMatchAllocator` requests a server for a match and&lt;br /&gt;
│      gets back an endpoint + join code; there&amp;#039;s no `mp-host deploy`/`update` box to manage.&lt;br /&gt;
│&lt;br /&gt;
└─ No host at all -- just my own PC / a LAN party&lt;br /&gt;
    └─ Local profile (`mp-host local up`/`down`) -- runs the package on this machine with Docker&lt;br /&gt;
       Desktop, no GHCR push, no SSH, no cloud API, no credential to store. See &amp;quot;The no-port-forwarding&lt;br /&gt;
       path&amp;quot; below for reaching players off the LAN.&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== The default: GenericVps-shaped dedicated servers ===&lt;br /&gt;
&lt;br /&gt;
[[Unity.Multiplayer/articles/hosting/genericvps|GenericVps]] is the first profile built and the one every other &amp;quot;always-on box&amp;quot; profile is shaped after: the server image runs beside the &amp;lt;code&amp;gt;mindattic/rendezvous&amp;lt;/code&amp;gt; container on any UDP-capable Linux VPS, and &amp;lt;code&amp;gt;mp-host&amp;lt;/code&amp;gt; configures it over SSH -- no cloud API involved, because you treat the box as already provisioned. Point &amp;lt;code&amp;gt;mp-host deploy --profile GenericVps&amp;lt;/code&amp;gt; at a box you rented from anywhere (Hetzner, Vultr, DigitalOcean, a home server with a forwarded port) and it works the same way.&lt;br /&gt;
&lt;br /&gt;
Every other cloud profile in the table automates the &amp;quot;rent the box&amp;quot; step on top of that same shape (create the VM/instance/droplet through the provider&amp;#039;s API, open a firewall rule for the game port and rendezvous, boot via cloud-init/startup-script running the same compose stack):&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Provider&lt;br /&gt;
! Profile&lt;br /&gt;
! Page&lt;br /&gt;
|-&lt;br /&gt;
| Hetzner Cloud&lt;br /&gt;
| &amp;lt;code&amp;gt;Hetzner&amp;lt;/code&amp;gt;&lt;br /&gt;
| [[Unity.Multiplayer/articles/hosting/hetzner|hosting/hetzner.md]]&lt;br /&gt;
|-&lt;br /&gt;
| Vultr&lt;br /&gt;
| &amp;lt;code&amp;gt;Vultr&amp;lt;/code&amp;gt;&lt;br /&gt;
| [[Unity.Multiplayer/articles/hosting/vultr|hosting/vultr.md]]&lt;br /&gt;
|-&lt;br /&gt;
| DigitalOcean&lt;br /&gt;
| &amp;lt;code&amp;gt;DigitalOcean&amp;lt;/code&amp;gt;&lt;br /&gt;
| [[Unity.Multiplayer/articles/hosting/digitalocean|hosting/digitalocean.md]]&lt;br /&gt;
|-&lt;br /&gt;
| Linode / Akamai&lt;br /&gt;
| &amp;lt;code&amp;gt;Linode&amp;lt;/code&amp;gt;&lt;br /&gt;
| [[Unity.Multiplayer/articles/hosting/linode|hosting/linode.md]]&lt;br /&gt;
|-&lt;br /&gt;
| OVHcloud&lt;br /&gt;
| &amp;lt;code&amp;gt;OvhCloud&amp;lt;/code&amp;gt;&lt;br /&gt;
| [[Unity.Multiplayer/articles/hosting/ovhcloud|hosting/ovhcloud.md]]&lt;br /&gt;
|-&lt;br /&gt;
| AWS EC2&lt;br /&gt;
| &amp;lt;code&amp;gt;AwsEc2&amp;lt;/code&amp;gt;&lt;br /&gt;
| [[Unity.Multiplayer/articles/hosting/aws-ec2|hosting/aws-ec2.md]]&lt;br /&gt;
|-&lt;br /&gt;
| AWS Lightsail&lt;br /&gt;
| &amp;lt;code&amp;gt;AwsLightsail&amp;lt;/code&amp;gt;&lt;br /&gt;
| [[Unity.Multiplayer/articles/hosting/aws-lightsail|hosting/aws-lightsail.md]]&lt;br /&gt;
|-&lt;br /&gt;
| Google Compute Engine&lt;br /&gt;
| &amp;lt;code&amp;gt;Gce&amp;lt;/code&amp;gt;&lt;br /&gt;
| [[Unity.Multiplayer/articles/hosting/gce|hosting/gce.md]]&lt;br /&gt;
|-&lt;br /&gt;
| Azure VM&lt;br /&gt;
| &amp;lt;code&amp;gt;AzureVm&amp;lt;/code&amp;gt;&lt;br /&gt;
| [[Unity.Multiplayer/articles/hosting/azure-vm|hosting/azure-vm.md]]&lt;br /&gt;
|-&lt;br /&gt;
| Fly.io&lt;br /&gt;
| &amp;lt;code&amp;gt;Fly&amp;lt;/code&amp;gt;&lt;br /&gt;
| [[Unity.Multiplayer/articles/hosting/flyio|hosting/flyio.md]]&lt;br /&gt;
|-&lt;br /&gt;
| Oracle Cloud (Always Free tier)&lt;br /&gt;
| &amp;lt;code&amp;gt;Oci&amp;lt;/code&amp;gt;&lt;br /&gt;
| [[Unity.Multiplayer/articles/hosting/oracle-oci|hosting/oracle-oci.md]]&lt;br /&gt;
|-&lt;br /&gt;
| Your own box, or &amp;lt;code&amp;gt;mp-host local&amp;lt;/code&amp;gt;&lt;br /&gt;
| &amp;lt;code&amp;gt;GenericVps&amp;lt;/code&amp;gt;&lt;br /&gt;
| [[Unity.Multiplayer/articles/hosting/genericvps|hosting/genericvps.md]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Pick whichever of these is cheapest or closest to your players; the guide page for each one has its own sizing/egress-cost notes. All of them update with an in-place rolling restart (&amp;lt;code&amp;gt;docker compose up -d&amp;lt;/code&amp;gt; with the new image) rather than replacing the box.&lt;br /&gt;
&lt;br /&gt;
=== The RunPod path ===&lt;br /&gt;
&lt;br /&gt;
RunPod is the one profile in the table that is not GenericVps-shaped, because &amp;lt;strong&amp;gt;RunPod pods do not support UDP.&amp;lt;/strong&amp;gt; This was re-verified against RunPod&amp;#039;s current docs for this guide (&amp;lt;code&amp;gt;docs.runpod.io&amp;lt;/code&amp;gt;, checked 2026-10-21): the &amp;quot;Expose ports&amp;quot; page states plainly that pods don&amp;#039;t support UDP connections and that applications needing it should use TCP-based communication instead -- RunPod exposes a pod over an HTTP proxy (10-port max, HTTPS only, 100 s idle timeout -- unsuitable for a game connection) or a Direct TCP port (RunPod assigns the public IP and external port, reported through &amp;lt;code&amp;gt;RUNPOD_TCP_PORT_&amp;amp;lt;port&amp;gt;&amp;lt;/code&amp;gt;). Nothing in RunPod&amp;#039;s recent changelog (the 2026 API v2 beta, Instant Cluster, Serverless worker affinity) adds UDP support. If that ever changes, this profile could move to the plain &amp;lt;code&amp;gt;Udp&amp;lt;/code&amp;gt; transport like every other profile; until then:&lt;br /&gt;
&lt;br /&gt;
* The server package builds with &amp;lt;code&amp;gt;UseWebSockets=true&amp;lt;/code&amp;gt; (Unity Transport over WebSockets, a TCP/HTTP framing of the same NGO traffic) instead of raw UDP.&lt;br /&gt;
* RunPod&amp;#039;s &amp;lt;code&amp;gt;podFindAndDeployOnDemand&amp;lt;/code&amp;gt; mutation declares the game port in the pod&amp;#039;s TCP port list; RunPod maps it to a public port at creation time, so there&amp;#039;s no separate firewall step.&lt;br /&gt;
* The pod reads its own &amp;lt;code&amp;gt;RUNPOD_PUBLIC_IP&amp;lt;/code&amp;gt;/&amp;lt;code&amp;gt;RUNPOD_TCP_PORT_&amp;amp;lt;port&amp;gt;&amp;lt;/code&amp;gt; and advertises that address when it self-registers with rendezvous (UM-T13&amp;#039;s &amp;lt;code&amp;gt;ServerAdvertisement&amp;lt;/code&amp;gt;) -- you never wire the mapping through by hand.&lt;br /&gt;
* There&amp;#039;s no in-place swap: RunPod pods are immutable once created, so &amp;lt;code&amp;gt;mp-host update&amp;lt;/code&amp;gt; terminates the old pod and creates a new one (players on the old pod are dropped). Plan updates for a quiet period, or run two pods behind your own matchmaking if that&amp;#039;s not acceptable.&lt;br /&gt;
&lt;br /&gt;
See [[Unity.Multiplayer/articles/hosting/runpod|hosting/runpod.md]] for the full deploy/update/teardown walkthrough and cost notes. RunPod still needs its own rendezvous service reachable from the internet (a GenericVps box, or a shared one your studio runs) since the pod itself runs only the game server, no side-car.&lt;br /&gt;
&lt;br /&gt;
=== Per-match allocation, instead of one always-on box ===&lt;br /&gt;
&lt;br /&gt;
Three profiles don&amp;#039;t run a server that stays up at all; they request one through an &amp;lt;code&amp;gt;IMatchAllocator&amp;lt;/code&amp;gt; when a match starts and release it when the match ends:&lt;br /&gt;
&lt;br /&gt;
* [[Unity.Multiplayer/articles/hosting/edgegap|Edgegap]] -- deploys a container per match, close to the players in it, through Edgegap&amp;#039;s deployment API.&lt;br /&gt;
* [[Unity.Multiplayer/articles/hosting/gameye|Gameye]] -- starts a session per match in a location you pick, through Gameye&amp;#039;s session API.&lt;br /&gt;
* [[Unity.Multiplayer/articles/hosting/gamelift|AWS GameLift]] -- the odd one out: a fleet is provisioned once (like GenericVps) but game/player sessions are allocated per match on top of it (like Edgegap/Gameye).&lt;br /&gt;
&lt;br /&gt;
Pick one of these instead of the always-on profiles above when your game runs short matches rather than a persistent world -- there&amp;#039;s no box to size, update or leave running between matches.&lt;br /&gt;
&lt;br /&gt;
=== The no-port-forwarding path ===&lt;br /&gt;
&lt;br /&gt;
If you have nowhere to rent a box and no port forwarding at home (an HOA-controlled network is RFC 0001&amp;#039;s documented case for this), you still have two options that need no forwarded port at all:&lt;br /&gt;
&lt;br /&gt;
# &amp;lt;strong&amp;gt;Development and LAN play:&amp;lt;/strong&amp;gt; localhost, LAN-by-IP, Multiplayer Play Mode and Unity Relay all work behind NAT with nothing to configure.&lt;br /&gt;
# &amp;lt;strong&amp;gt;A listen server reachable off the LAN:&amp;lt;/strong&amp;gt; use &amp;lt;strong&amp;gt;Unity Relay&amp;lt;/strong&amp;gt; as the join-code provider (&amp;lt;code&amp;gt;JoinCodeProvider.Relay&amp;lt;/code&amp;gt;, the default &amp;lt;code&amp;gt;Auto&amp;lt;/code&amp;gt; choice for a &amp;lt;code&amp;gt;Host&amp;lt;/code&amp;gt; topology) instead of the self-hosted rendezvous service -- Relay gets through NAT; rendezvous maps codes to addresses but cannot. Relay needs the package and a Unity Cloud project link, set up in a few minutes by the New Game wizard&amp;#039;s step 3 or &amp;lt;code&amp;gt;tools/link-unity-cloud.ps1&amp;lt;/code&amp;gt; (see [[Unity.Multiplayer/articles/join-codes#Unity Relay for a home host (no port forwarding)|Unity Relay for a home host]]). &amp;lt;code&amp;gt;mp-host local up&amp;lt;/code&amp;gt; (the &amp;lt;code&amp;gt;Local&amp;lt;/code&amp;gt; profile) also makes a best-effort UPnP port-mapping attempt for players connecting by IP, and reports plainly when the router refuses it (the expected outcome on a managed/HOA network) rather than treating that as an error.&lt;br /&gt;
&lt;br /&gt;
Internet play by IP (not Relay) still needs a dedicated server on a rented host from the table above -- see [[Unity.Multiplayer/articles/hosting/local|hosting/local.md]] for the full UPnP story.&lt;br /&gt;
&lt;br /&gt;
== Ports ==&lt;br /&gt;
&lt;br /&gt;
Every profile opens the same three kinds of port; only the game port&amp;#039;s protocol and who opens the firewall rule differ:&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;
! Who opens it&lt;br /&gt;
|-&lt;br /&gt;
| your game port&lt;br /&gt;
| UDP (GenericVps-shaped profiles, GameLift, Edgegap, Gameye) or TCP via WebSockets (RunPod)&lt;br /&gt;
| Players connect here.&lt;br /&gt;
| &amp;lt;code&amp;gt;mp-host&amp;lt;/code&amp;gt; (a provider firewall rule/security group, or &amp;lt;code&amp;gt;ufw&amp;lt;/code&amp;gt; best-effort on a box you already own)&lt;br /&gt;
|-&lt;br /&gt;
| 8080&lt;br /&gt;
| TCP&lt;br /&gt;
| The rendezvous service: dedicated servers self-register here; players resolve join codes here.&lt;br /&gt;
| &amp;lt;code&amp;gt;mp-host&amp;lt;/code&amp;gt;, alongside the game port, wherever rendezvous runs&lt;br /&gt;
|-&lt;br /&gt;
| health port&lt;br /&gt;
| TCP, bound to &amp;lt;code&amp;gt;127.0.0.1&amp;lt;/code&amp;gt;&lt;br /&gt;
| &amp;lt;code&amp;gt;GET /healthz&amp;lt;/code&amp;gt;. Never reachable from the internet by design -- &amp;lt;code&amp;gt;mp-host&amp;lt;/code&amp;gt; polls it over SSH (GenericVps-shaped) or loopback (Local), never through a public firewall rule.&lt;br /&gt;
| N/A -- intentionally not opened&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Per-match profiles (Edgegap, Gameye, GameLift) manage the game port through their own allocation API instead of a firewall rule &amp;lt;code&amp;gt;mp-host&amp;lt;/code&amp;gt; owns directly; see each profile&amp;#039;s page for specifics.&lt;br /&gt;
&lt;br /&gt;
== Secrets ==&lt;br /&gt;
&lt;br /&gt;
Nothing credential-shaped is ever written to the repo or passed on a shared command line. Every profile&amp;#039;s own key/token/password lives in &amp;lt;code&amp;gt;MindAttic.Vault&amp;lt;/code&amp;gt; behind &amp;lt;code&amp;gt;mp-host credentials set-&amp;amp;lt;thing&amp;gt;&amp;lt;/code&amp;gt;, and &amp;lt;code&amp;gt;mp-host deploy&amp;lt;/code&amp;gt;/&amp;lt;code&amp;gt;update&amp;lt;/code&amp;gt;/&amp;lt;code&amp;gt;destroy&amp;lt;/code&amp;gt; read it back by name:&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! What&lt;br /&gt;
! Command&lt;br /&gt;
|-&lt;br /&gt;
| GHCR push access&lt;br /&gt;
| &amp;lt;code&amp;gt;mp-host credentials set-ghcr --username &amp;amp;lt;user&amp;gt; --token &amp;amp;lt;PAT with write:packages&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| An SSH key for a box you already own&lt;br /&gt;
| &amp;lt;code&amp;gt;mp-host credentials set-ssh --name &amp;amp;lt;server&amp;gt; --host &amp;amp;lt;h&amp;gt; --user &amp;amp;lt;u&amp;gt; --key &amp;amp;lt;path&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| A cloud provider&amp;#039;s API token/key&lt;br /&gt;
| &amp;lt;code&amp;gt;mp-host credentials set-&amp;amp;lt;hetzner&amp;amp;#124;vultr&amp;amp;#124;digitalocean&amp;amp;#124;linode&amp;amp;#124;ovh&amp;amp;#124;aws&amp;amp;#124;gce&amp;amp;#124;azure&amp;amp;#124;fly&amp;amp;#124;oci&amp;amp;#124;runpod&amp;gt;&amp;lt;/code&amp;gt; (plus, for the provisioned-VM profiles, an SSH keypair alongside the token)&lt;br /&gt;
|-&lt;br /&gt;
| Per-server launch options (AMI, key pair, resource group, subnet, ...)&lt;br /&gt;
| &amp;lt;code&amp;gt;mp-host credentials set-cloud-options --profile &amp;amp;lt;AwsEc2&amp;amp;#124;AwsLightsail&amp;amp;#124;Gce&amp;amp;#124;AzureVm&amp;amp;#124;Fly&amp;amp;#124;GameLift&amp;gt; --name &amp;amp;lt;server&amp;gt; --opt KEY=VALUE ...&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| A per-match allocator&amp;#039;s API credential&lt;br /&gt;
| &amp;lt;code&amp;gt;mp-host credentials set-edgegap&amp;lt;/code&amp;gt; / &amp;lt;code&amp;gt;set-gameye&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| The rendezvous registration secret&lt;br /&gt;
| &amp;lt;code&amp;gt;mp-host credentials set-rendezvous [--secret &amp;amp;lt;s&amp;gt;]&amp;lt;/code&amp;gt; (without &amp;lt;code&amp;gt;--secret&amp;lt;/code&amp;gt; it generates a random one). &amp;lt;code&amp;gt;mp-host deploy&amp;lt;/code&amp;gt;/&amp;lt;code&amp;gt;update&amp;lt;/code&amp;gt;/&amp;lt;code&amp;gt;local up&amp;lt;/code&amp;gt; read it from the vault -- generating and storing one on first use when none is stored -- and inject it into both the game server (&amp;lt;code&amp;gt;MINDATTIC_RENDEZVOUS_SECRET&amp;lt;/code&amp;gt;) and its rendezvous container (&amp;lt;code&amp;gt;Rendezvous&amp;amp;#95;_RegistrationSecret&amp;lt;/code&amp;gt;). &amp;lt;code&amp;gt;--rendezvous-secret &amp;amp;lt;s&amp;gt;&amp;lt;/code&amp;gt; on a single command overrides it, e.g. to match a rendezvous service you run elsewhere&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;--dry-run&amp;lt;/code&amp;gt; (every &amp;lt;code&amp;gt;mp-host&amp;lt;/code&amp;gt; command accepts it) prints the exact API call, SSH command or compose file it would send, so you can check a deploy before it touches a credential-backed resource or spends provider credit. A dry run needs no stored GHCR credential or SSH target: when one is missing it warns and prints &amp;lt;code&amp;gt;&amp;amp;lt;dry-run placeholder ...&amp;gt;&amp;lt;/code&amp;gt; values in its place, so a game&amp;#039;s &amp;lt;code&amp;gt;run.ps1 -DryRun&amp;lt;/code&amp;gt; works on a fresh machine (the big-cloud launch options above still have to be stored, since they name real local key files).&lt;br /&gt;
&lt;br /&gt;
== TLS ==&lt;br /&gt;
&lt;br /&gt;
The rendezvous service (&amp;lt;code&amp;gt;server/Rendezvous&amp;lt;/code&amp;gt;) serves plain HTTP on port 8080 by default -- &amp;lt;code&amp;gt;RendezvousOptions.RequireHttps&amp;lt;/code&amp;gt; is off, and the shared &amp;lt;code&amp;gt;RegistrationSecret&amp;lt;/code&amp;gt; authenticates who may register/heartbeat/delete a listing, not the transport. For a rendezvous instance reachable from the public internet, pick one of:&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;strong&amp;gt;Terminate TLS at a reverse proxy or your cloud provider&amp;#039;s load balancer&amp;lt;/strong&amp;gt; in front of port 8080, and turn on &amp;lt;code&amp;gt;RendezvousOptions.UseForwardedHeaders&amp;lt;/code&amp;gt; with the proxy&amp;#039;s address in &amp;lt;code&amp;gt;KnownProxies&amp;lt;/code&amp;gt; so rendezvous trusts its &amp;lt;code&amp;gt;X-Forwarded-For&amp;lt;/code&amp;gt;/&amp;lt;code&amp;gt;X-Forwarded-Proto&amp;lt;/code&amp;gt; headers (this is the normal shape for a box that already runs behind something like Caddy/nginx for its own certificate renewal).&lt;br /&gt;
* &amp;lt;strong&amp;gt;Serve TLS directly from Kestrel&amp;lt;/strong&amp;gt; (a certificate you provide) and set &amp;lt;code&amp;gt;RequireHttps&amp;lt;/code&amp;gt; so plain HTTP is redirected and HSTS is sent.&lt;br /&gt;
&lt;br /&gt;
Neither is wired up by &amp;lt;code&amp;gt;mp-host&amp;lt;/code&amp;gt; itself today -- it deploys rendezvous exactly as shown in each profile&amp;#039;s compose/cloud-init template, on plain HTTP port 8080 -- so add whichever of the two fits your box before relying on a public join-code service for anything beyond testing. The game port itself has no built-in transport encryption on the &amp;lt;code&amp;gt;Udp&amp;lt;/code&amp;gt;/&amp;lt;code&amp;gt;WebSocket&amp;lt;/code&amp;gt; transports either profile uses; &amp;lt;strong&amp;gt;Unity Relay&amp;lt;/strong&amp;gt;, the no-port-forwarding path above, is the one join path in this table that doesn&amp;#039;t need you to add this yourself.&lt;br /&gt;
&lt;br /&gt;
== Updates ==&lt;br /&gt;
&lt;br /&gt;
How &amp;lt;code&amp;gt;mp-host update&amp;lt;/code&amp;gt; rolls out a new image differs by profile shape:&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Shape&lt;br /&gt;
! Profiles&lt;br /&gt;
! What &amp;lt;code&amp;gt;update&amp;lt;/code&amp;gt; does&lt;br /&gt;
|-&lt;br /&gt;
| GenericVps-shaped box&lt;br /&gt;
| GenericVps and every provisioned-VM profile (Hetzner, Vultr, DigitalOcean, Linode, OVHcloud, AWS EC2/Lightsail, GCE, Azure VM, Fly.io, Oracle OCI)&lt;br /&gt;
| In-place rolling restart: re-renders the compose file, pulls the new image, &amp;lt;code&amp;gt;docker compose up -d&amp;lt;/code&amp;gt; on the same box.&lt;br /&gt;
|-&lt;br /&gt;
| RunPod&lt;br /&gt;
| RunPod&lt;br /&gt;
| Blue/green by necessity: pods are immutable, so &amp;lt;code&amp;gt;update&amp;lt;/code&amp;gt; terminates the old pod and creates a new one. Players on the old pod are dropped during the swap.&lt;br /&gt;
|-&lt;br /&gt;
| Managed fleet&lt;br /&gt;
| AWS GameLift&lt;br /&gt;
| A blue/green fleet swap.&lt;br /&gt;
|-&lt;br /&gt;
| Per-match allocation&lt;br /&gt;
| Edgegap, Gameye&lt;br /&gt;
| Nothing to roll: the next match simply allocates against the newly registered app version/image; there&amp;#039;s no running box to update in place.&lt;br /&gt;
|-&lt;br /&gt;
| Local&lt;br /&gt;
| Local&lt;br /&gt;
| &amp;lt;code&amp;gt;mp-host local up&amp;lt;/code&amp;gt; again with the new package/image; you control when that happens.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;mp-host destroy ... --yes&amp;lt;/code&amp;gt; tears the resource down outright (compose stack, pod, VM + its firewall resource, fleet, or UPnP mapping, depending on profile) -- see each profile&amp;#039;s own page for exactly what it deletes and what, if anything, it leaves for you to cancel yourself (a rented VPS is yours to keep or cancel; &amp;lt;code&amp;gt;mp-host&amp;lt;/code&amp;gt; only ever tears down what it created on it).&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.md Unity.Multiplayer/docs/articles/hosting.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>