<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/">
    <channel>
        <title>Tino Mazorodze</title>
        <link>https://www.tinomazorodze.com/</link>
        <description>My little corner on the internet where I post articles about my experiences and interests in coding, gaming and anime.</description>
        <lastBuildDate>Mon, 10 Aug 2026 19:40:20 GMT</lastBuildDate>
        <docs>https://validator.w3.org/feed/docs/rss2.html</docs>
        <generator>https://github.com/jpmonette/feed</generator>
        <image>
            <title>Tino Mazorodze</title>
            <url>https://www.tinomazorodze.com/favicon.ico</url>
            <link>https://www.tinomazorodze.com/</link>
        </image>
        <copyright>All rights reserved 2026</copyright>
        <item>
            <title><![CDATA[Creating a Minecraft Server for Offline and Online Play Using Docker]]></title>
            <link>https://www.tinomazorodze.com/blog/creating-minecraft-server-for-offline-and-online-play-using-docker</link>
            <guid isPermaLink="false">https://www.tinomazorodze.com/blog/creating-minecraft-server-for-offline-and-online-play-using-docker</guid>
            <pubDate>Fri, 07 Aug 2026 00:00:00 GMT</pubDate>
            <content:encoded><![CDATA[<h2>Requirements</h2>
<ul>
<li>✅ A good internet connection for initial setup</li>
<li>✅ Download Docker Desktop App</li>
<li>✅ Minecraft Bedrock</li>
</ul>
<h2>Step by Step Guide to creating a LAN server you can play on any of your devices</h2>
<ol>
<li>On any laptop connected to the same network as your minecraft device, create a folder <code>minecraft-server</code></li>
<li>Create a file <code>docker-compose.yaml</code></li>
<li>Copy and paste the following code into the <code>docker-compose.yaml</code> file</li>
</ol>
<pre class="language-yaml"><code class="language-yaml"><span class="token key atrule">services</span><span class="token punctuation">:</span>
  <span class="token key atrule">minecraft</span><span class="token punctuation">:</span>
    <span class="token key atrule">image</span><span class="token punctuation">:</span> itzg/minecraft<span class="token punctuation">-</span>bedrock<span class="token punctuation">-</span>server
    <span class="token key atrule">container_name</span><span class="token punctuation">:</span> minecraft<span class="token punctuation">-</span>bedrock
    <span class="token key atrule">environment</span><span class="token punctuation">:</span>
      <span class="token key atrule">EULA</span><span class="token punctuation">:</span> <span class="token string">"TRUE"</span>
      <span class="token key atrule">SERVER_NAME</span><span class="token punctuation">:</span> <span class="token string">"My Server"</span>
      <span class="token key atrule">GAMEMODE</span><span class="token punctuation">:</span> survival
      <span class="token key atrule">DIFFICULTY</span><span class="token punctuation">:</span> normal
      <span class="token key atrule">ALLOW_CHEATS</span><span class="token punctuation">:</span> <span class="token string">"false"</span>
      <span class="token key atrule">LEVEL_SEED</span><span class="token punctuation">:</span> <span class="token string">"7085862198572591177"</span>
      <span class="token key atrule">ALLOW_LIST</span><span class="token punctuation">:</span> <span class="token string">"false"</span>
    <span class="token key atrule">ports</span><span class="token punctuation">:</span>
      <span class="token punctuation">-</span> <span class="token string">"19132:19132/udp"</span>
    <span class="token key atrule">volumes</span><span class="token punctuation">:</span>
      <span class="token punctuation">-</span> ./minecraft<span class="token punctuation">-</span>data<span class="token punctuation">:</span>/data
    <span class="token key atrule">restart</span><span class="token punctuation">:</span> unless<span class="token punctuation">-</span>stopped
</code></pre>
<p><em>You can change the server name and other settings as needed.</em></p>
<ol start="4">
<li>
<p>Right click inside the folder and select <code>Open in Terminal</code> or <code>Open in Command Prompt</code></p>
</li>
<li>
<p>Type the following command to initialise the docker container (Be sure to have Docker Desktop running)</p>
</li>
</ol>
<pre class="language-bash"><code class="language-bash"><span class="token function">docker-compose</span> up
</code></pre>
<p>(Dont include -d so you can see the logs inside the terminal)</p>
<p>On the first run, the server will download the necessary files and start the server. You can check the logs until it says <code>server started</code> as shown on the image below:</p>
<img alt="Screenshot of CMD Terminal showing docker logs" loading="lazy" width="1567" height="777" decoding="async" data-nimg="1" style="color:transparent" srcset="/_next/image?url=%2F_next%2Fstatic%2Fmedia%2Fserver-started.1mm8azvkt2ob2.png&amp;w=1920&amp;q=75 1x, /_next/image?url=%2F_next%2Fstatic%2Fmedia%2Fserver-started.1mm8azvkt2ob2.png&amp;w=3840&amp;q=75 2x" src="/_next/image?url=%2F_next%2Fstatic%2Fmedia%2Fserver-started.1mm8azvkt2ob2.png&amp;w=3840&amp;q=75">
<ol start="6">
<li>Open a cmd or powershell terminal and type the following command to get your local IP address</li>
</ol>
<pre class="language-bash"><code class="language-bash">ipconfig
</code></pre>
<p>Look for soemthing like <code>IPv4 Address. . . . . . : 192.168.1.100</code>. It will be under: Wireless LAN adapter Wi-Fi you will see something like <code>192.168.100.4</code>.</p>
<ol start="7">
<li>On your Minecraft device, go to <code>Play</code> &gt; <code>Servers</code> &gt; <code>Add Server</code> and enter the following details:</li>
</ol>
<ul>
<li><strong>Server Name</strong>: My Server</li>
<li><strong>Server Address</strong>: [Your Local IP Address e.g. <code>192.168.1.100</code>]</li>
<li><strong>Port</strong>: 19132 (default port for Minecraft Bedrock)</li>
</ul>
<ol start="8">
<li>
<p>You should be able to connect to the server and play with friends on the same network.</p>
</li>
<li>
<p>For offline play configuration set <code>online-mode=false</code> inside <code>minecraft-data/server.properties</code> file. This will allow you to play offline without needing an internet connection. (Note that an internet connection will still be needed to load minecraft to the servers menu)</p>
</li>
</ol>
<h2>Useful commands</h2>
<p><code>docker exec minecraft-bedrock send-command gamerule showcoordinates true</code> to set show coordinates</p>
<p>You can use AI to get other command variants</p>
<h2>Managing the Server</h2>
<p>I am in the process of creating a neat desktop app for you to manage the server. The app will allow you to start, stop, restart and view logs of the server. It will also allow you to change game settings without having to use the command line.</p>]]></content:encoded>
            <author>admin@tinomazorodze.com (Tino Mazorodze)</author>
        </item>
    </channel>
</rss>