<?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%2Frunpod</id>
	<title>Unity.Multiplayer/articles/hosting/runpod - 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%2Frunpod"/>
	<link rel="alternate" type="text/html" href="https://mindattic.com/wiki/docs/index.php?title=Unity.Multiplayer/articles/hosting/runpod&amp;action=history"/>
	<updated>2026-12-05T12:01:34Z</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/runpod&amp;diff=927&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/runpod&amp;diff=927&amp;oldid=prev"/>
		<updated>2026-11-29T20:37:02Z</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 RunPod (RunPod) =&lt;br /&gt;
&lt;br /&gt;
The WebSocket-transport profile (UM-T23): your server package runs as a single RunPod pod, reachable over a RunPod-mapped TCP port. Unlike GenericVps, RunPod runs just the game server -- there&amp;#039;s no rendezvous side-car in the pod, so you point it at a rendezvous service deployed somewhere else (a GenericVps box, your own small VPS, or a shared one your studio already runs).&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) &amp;lt;code&amp;gt;RunPod&amp;lt;/code&amp;gt;-profile server package and its Docker image, then pushes it to GHCR.&lt;br /&gt;
# Calls RunPod&amp;#039;s GraphQL API (&amp;lt;code&amp;gt;podFindAndDeployOnDemand&amp;lt;/code&amp;gt;) to create a pod from that image, with the declared game port in its TCP port list and your rendezvous URL/secret as pod environment variables.&lt;br /&gt;
# RunPod maps the declared port to a public one at pod creation -- there is no separate firewall step; &amp;lt;code&amp;gt;mp-host&amp;lt;/code&amp;gt; logs that and moves on.&lt;br /&gt;
# Polls the pod until RunPod reports it &amp;lt;code&amp;gt;RUNNING&amp;lt;/code&amp;gt;.&lt;br /&gt;
# Watches the pod&amp;#039;s container logs for &amp;lt;code&amp;gt;[MindAttic.Multiplayer] Join code: ABC-DEF-GHJ&amp;lt;/code&amp;gt; (the same self-registration line GenericVps watches for) and prints it.&lt;br /&gt;
&lt;br /&gt;
RunPod assigns the public IP and mapped port; the game server itself reads &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; (UM-T13&amp;#039;s &amp;lt;code&amp;gt;ServerAdvertisement&amp;lt;/code&amp;gt;) to advertise the right address to rendezvous, so you never have to wire that mapping through by hand.&lt;br /&gt;
&lt;br /&gt;
== Before you deploy ==&lt;br /&gt;
&lt;br /&gt;
You need a rendezvous service already reachable from the internet (deploy one via the GenericVps profile, or point at a shared one) and a RunPod API key, stored in the vault:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre class=&amp;quot;md-code&amp;quot;&amp;gt;mp-host credentials set-runpod --key &amp;amp;lt;RunPod API key&amp;gt;&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 RunPod --name ws-server --package ./build/RunPod \&lt;br /&gt;
  --image myorg/mygame --tag v1 \&lt;br /&gt;
  --rendezvous-url https&amp;amp;#58;//rendezvous.example.com \&lt;br /&gt;
  --public-address ws-server&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;--public-address&amp;lt;/code&amp;gt; is cosmetic here (RunPod&amp;#039;s own &amp;lt;code&amp;gt;RUNPOD_PUBLIC_IP&amp;lt;/code&amp;gt; is what the server actually advertises); it&amp;#039;s kept required across every profile so the same &amp;lt;code&amp;gt;--env&amp;lt;/code&amp;gt; overrides work uniformly.&lt;br /&gt;
&lt;br /&gt;
Add &amp;lt;code&amp;gt;--dry-run&amp;lt;/code&amp;gt; first to see the exact GraphQL mutation mp-host would send, without creating anything or spending RunPod credit.&lt;br /&gt;
&lt;br /&gt;
== Updating and tearing down ==&lt;br /&gt;
&lt;br /&gt;
RunPod pods are immutable once created -- there is no in-place container-image swap the way GenericVps&amp;#039;s &amp;lt;code&amp;gt;docker compose up -d&amp;lt;/code&amp;gt; gives you. &amp;lt;code&amp;gt;mp-host update&amp;lt;/code&amp;gt; therefore &amp;lt;strong&amp;gt;terminates the old pod and creates a new one&amp;lt;/strong&amp;gt;: players connected to the old pod are dropped during the swap, unlike GenericVps&amp;#039;s in-place restart. Plan updates for a quiet period, or run two pods behind your own matchmaking if that&amp;#039;s not acceptable. &amp;lt;code&amp;gt;mp-host destroy ... --yes&amp;lt;/code&amp;gt; terminates the pod outright.&lt;br /&gt;
&lt;br /&gt;
== Cost and sizing notes ==&lt;br /&gt;
&lt;br /&gt;
RunPod bills by the second a pod runs, including CPU-only pods -- there&amp;#039;s no need for a GPU instance for a game server. Pick the smallest CPU/RAM tier your game needs and stop (don&amp;#039;t just leave running) pods between events if you&amp;#039;re not hosting continuously; &amp;lt;code&amp;gt;mp-host destroy&amp;lt;/code&amp;gt; is the cheapest way to make sure nothing keeps billing after a test. Verify RunPod&amp;#039;s current CPU-pod pricing and TCP port-mapping limits against their live docs before committing to it for a public launch -- this is also why the real-provider smoke test (&amp;lt;code&amp;gt;tests/Hosting.Cli.Tests/Smoke/RunPodSmokeTests.cs&amp;lt;/code&amp;gt;) is opt-in rather than part of every build: it costs real money and depends on RunPod&amp;#039;s schema not having drifted since this was written.&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/runpod.md Unity.Multiplayer/docs/articles/hosting/runpod.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>