# tuna ❤️ Minecraft

[Minecraft](https://www.minecraft.net/ru-ru?utm_source=tuna.am) - a popular indie sandbox computer game.

Tuna will help you open access to Minecraft (java edition) on your local network. We wrote detailed instructions [on how to run a Minecraft server locally in Docker and open access to friends using Tuna](https://dtf.ru/howto/2821468-instrukciya-zapuskaem-minecraft-lokalno-v-docker-i-otkryvaem-dostup-druzyam-s-pomoshyu-tuna), on any operating system.

***

info

To publish Minecraft, you need to create a [TCP tunnel](https://tuna.am/en/docs/tunnels/tcp.md), which is only available with a [subscription](https://tuna.am/#pricing).

But you don't necessarily have to run your own Minecraft server to play with friends - you can simply open access to your game:

## Step 1. Launch Minecraft (java edition)

* Create a *Single Player Game*
* Press **esc**
* Select *Open to LAN*
* Set a port, for example `45678`
* Click *Start LAN World*

## Step 2. Install the tuna client

Instructions are available on the [installation page](https://tuna.am/en/docs/guides/install.md).

## Step 3. Run tuna

Execute:

```bash
tuna tcp 45678

```

Share the connection link with your friends as in the example, **without** the `tcp://` scheme:

![minecraft\_link](/docs/img/examples/minecraft_link.png)

tip

If you need to know the real IP of clients, some builds, for example [Velocity](https://docs.papermc.io/velocity/configuration/#advanced-section), support Proxy Protocol. You need to enable it in the game config and in the `tuna` client.

In the argument you need to pass version 1 or 2, which corresponds to the Proxy Protocol version: 1 is text, 2 is binary.

```shell
tuna tcp 45678 --proxy-protocol=1
# or
tuna tcp 45678 --proxy-protocol=2

```
