<?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%2Flocal</id>
	<title>Unity.Multiplayer/articles/hosting/local - 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%2Flocal"/>
	<link rel="alternate" type="text/html" href="https://mindattic.com/wiki/docs/index.php?title=Unity.Multiplayer/articles/hosting/local&amp;action=history"/>
	<updated>2026-12-05T13:09:06Z</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/local&amp;diff=924&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/local&amp;diff=924&amp;oldid=prev"/>
		<updated>2026-11-29T20:36:59Z</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 your own PC (Local) =&lt;br /&gt;
&lt;br /&gt;
The free/home option with no rented host at all (UM-T31): &amp;lt;code&amp;gt;mp-host local up&amp;lt;/code&amp;gt;/&amp;lt;code&amp;gt;mp-host local down&amp;lt;/code&amp;gt; run the already-built server package as a Docker container on the machine &amp;lt;code&amp;gt;mp-host&amp;lt;/code&amp;gt; itself runs on -- no GHCR push, no SSH, no cloud API, no credential to store. Other players on the same network join by IP; &amp;lt;code&amp;gt;local up&amp;lt;/code&amp;gt; also makes a best-effort attempt to forward the game port off the LAN via UPnP, with a plain explanation when the router refuses.&lt;br /&gt;
&lt;br /&gt;
From a Unity project, &amp;lt;code&amp;gt;mp-host game local&amp;lt;/code&amp;gt; (UM-T58, see [[Unity.Multiplayer/articles/hosting#Deploy any game with one command (mp-host game)|Hosting]]) does all of this with no flags: it builds the package from the project&amp;#039;s server scene with the right Unity editor, adds a rendezvous container for join codes, skips UPnP unless &amp;lt;code&amp;gt;--upnp&amp;lt;/code&amp;gt; is given, and &amp;lt;code&amp;gt;mp-host game down&amp;lt;/code&amp;gt; stops it.&lt;br /&gt;
&lt;br /&gt;
== What &amp;lt;code&amp;gt;mp-host local up&amp;lt;/code&amp;gt; does ==&lt;br /&gt;
&lt;br /&gt;
# Builds (or reads an already-built) &amp;lt;strong&amp;gt;GenericVps-profile&amp;lt;/strong&amp;gt; server package -- the same Linux/Docker package every other profile uses; it runs under Docker Desktop (with WSL2 on Windows) the same way it would on a rented Linux VPS.&lt;br /&gt;
# Finds this machine&amp;#039;s own LAN IPv4 address(es) and prints them (&amp;lt;code&amp;gt;LAN join: connect by IP to 192.168.1.42:7777&amp;lt;/code&amp;gt;) -- &amp;lt;code&amp;gt;--public-address&amp;lt;/code&amp;gt; overrides the guess if you have more than one active network adapter and want a specific one.&lt;br /&gt;
# Renders a compose file that &amp;lt;strong&amp;gt;builds from the package directory&amp;lt;/strong&amp;gt; (&amp;lt;code&amp;gt;build: &amp;amp;lt;dir&amp;gt;&amp;lt;/code&amp;gt;) instead of pulling a pushed &amp;lt;code&amp;gt;ghcr.io/...&amp;lt;/code&amp;gt; image -- there is nothing to push to for a box that never leaves the LAN -- and runs &amp;lt;code&amp;gt;docker compose up -d --build&amp;lt;/code&amp;gt;. The rendezvous service is included only when you pass &amp;lt;code&amp;gt;--rendezvous-url&amp;lt;/code&amp;gt; (its registration secret comes from the vault, see [[Unity.Multiplayer/articles/hosting#Secrets|Secrets]]); LAN-only play has no use for join codes.&lt;br /&gt;
# Polls the health port directly over loopback HTTP (no SSH hop needed on the same machine).&lt;br /&gt;
# Unless &amp;lt;code&amp;gt;--no-upnp&amp;lt;/code&amp;gt; is given, discovers a UPnP Internet Gateway Device on the LAN (SSDP multicast, then a SOAP &amp;lt;code&amp;gt;AddPortMapping&amp;lt;/code&amp;gt; call against its &amp;lt;code&amp;gt;WANIPConnection&amp;lt;/code&amp;gt;/&amp;lt;code&amp;gt;WANPPPConnection&amp;lt;/code&amp;gt; service) and asks it to forward the game port. See &amp;quot;UPnP: what succeeds and what doesn&amp;#039;t&amp;quot; below.&lt;br /&gt;
# Remembers the package directory, compose file name and whether a mapping was added, so &amp;lt;code&amp;gt;mp-host local down --name &amp;amp;lt;server&amp;gt;&amp;lt;/code&amp;gt; needs no other flags.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre class=&amp;quot;md-code&amp;quot;&amp;gt;mp-host local up --name home --package ./build/GenericVps --public-address 192.168.1.42&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
or, to also be reachable beyond the LAN with a join code:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre class=&amp;quot;md-code&amp;quot;&amp;gt;mp-host local up --name home --package ./build/GenericVps \&lt;br /&gt;
  --rendezvous-url http&amp;amp;#58;//192.168.1.42:8080&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre class=&amp;quot;md-code&amp;quot;&amp;gt;mp-host local down --name home&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Both accept &amp;lt;code&amp;gt;--dry-run&amp;lt;/code&amp;gt;, same as every other command, printing the compose/UPnP calls it would make instead of making them.&lt;br /&gt;
&lt;br /&gt;
== UPnP: what succeeds and what doesn&amp;#039;t ==&lt;br /&gt;
&lt;br /&gt;
A UPnP mapping only ever works when the router both supports UPnP &amp;lt;strong&amp;gt;and&amp;lt;/strong&amp;gt; has it turned on -- &amp;lt;code&amp;gt;mp-host local up&amp;lt;/code&amp;gt; reports the outcome plainly either way, and a refusal is not an error:&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;strong&amp;gt;Success:&amp;lt;/strong&amp;gt; the router accepted the mapping; mp-host also calls &amp;lt;code&amp;gt;GetExternalIPAddress&amp;lt;/code&amp;gt; as a courtesy and prints it if the router answers.&lt;br /&gt;
* &amp;lt;strong&amp;gt;No gateway answered the discovery broadcast:&amp;lt;/strong&amp;gt; the most common outcome on an &amp;lt;strong&amp;gt;HOA-controlled or otherwise managed network&amp;lt;/strong&amp;gt; (RFC 0001&amp;#039;s documented case for the owner&amp;#039;s own home network) -- UPnP is simply off, by policy, at the router. Nothing is broken; there is nothing to retry.&lt;br /&gt;
* &amp;lt;strong&amp;gt;The router answered but refused the mapping&amp;lt;/strong&amp;gt; (a SOAP fault, e.g. &amp;lt;code&amp;gt;Action Not Authorized&amp;lt;/code&amp;gt;): UPnP is on but port forwarding is blocked by the router&amp;#039;s own configuration/policy.&lt;br /&gt;
&lt;br /&gt;
Either refusal means the same thing for players: &amp;lt;strong&amp;gt;this listen server is reachable on the LAN by IP only.&amp;lt;/strong&amp;gt; For a player off the LAN, use &amp;lt;strong&amp;gt;Unity Relay&amp;lt;/strong&amp;gt; as the join-code provider for a listen server (RFC 0001&amp;#039;s default for exactly this case), or rent a dedicated host from elsewhere in this hosting table -- a UPnP failure on a home network is the expected reason RFC 0001 gives Relay as the default for listen servers in the first place, not a bug in this profile.&lt;br /&gt;
&lt;br /&gt;
Pass &amp;lt;code&amp;gt;--no-upnp&amp;lt;/code&amp;gt; to skip the three-second discovery attempt entirely once you already know your network has none (most HOA/managed networks) -- &amp;lt;code&amp;gt;mp-host local down --name &amp;amp;lt;server&amp;gt;&amp;lt;/code&amp;gt; also skips removing a mapping it never made.&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), bound to every interface&lt;br /&gt;
| Players connect here, including over LAN by IP.&lt;br /&gt;
|-&lt;br /&gt;
| 8080&lt;br /&gt;
| TCP&lt;br /&gt;
| The rendezvous service, only when &amp;lt;code&amp;gt;--rendezvous-url&amp;lt;/code&amp;gt; was given.&lt;br /&gt;
|-&lt;br /&gt;
| health port&lt;br /&gt;
| TCP, bound to 127.0.0.1&lt;br /&gt;
| Not reachable from the internet (or the LAN) by design.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Windows prerequisites ==&lt;br /&gt;
&lt;br /&gt;
Docker Desktop with the WSL2 backend (the server package is always a Linux build, same as every other profile) and, for a router with UPnP, nothing extra -- &amp;lt;code&amp;gt;mp-host local up&amp;lt;/code&amp;gt; talks SSDP/SOAP directly, no third-party UPnP client tool required.&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/local.md Unity.Multiplayer/docs/articles/hosting/local.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>