I modified Luanti to use exclusively TCP packets

For people working on the C++ code.
Post Reply
luantiuser438
New member
Posts: 2
Joined: Sun May 31, 2026 18:53

I modified Luanti to use exclusively TCP packets

by luantiuser438 » Post

Hi,

Made an account specifically for this, not exactly sure where to post this, none of the other boards look relevant, so I'll put it here.

So I've done some tinkering on the Luanti source code. My derivative uses exclusively TCP packets to communicate between the client and the server.

Because of this, you can set up your server as a hidden service and run the client with torsocks to play over Tor. I have tested it and it works.

I am hosting the source code here: https://file.garden/ahyFC3XeRxe_Za_F/luanti.tar.gz

Note that it is 5.16.0 but modified, so if you run a diff between the 5.16.0 tag and my code you will be able to inspect for malware.
Last edited by luantiuser438 on Tue Jun 02, 2026 21:20, edited 1 time in total.

User avatar
Arion18
Member
Posts: 14
Joined: Thu Jun 06, 2024 14:53
In-game: Arion18
Location: Germany

Re: I modified Luanti to use exclusively TCP packets

by Arion18 » Post

luantiuser438 wrote:
Sun May 31, 2026 19:01
Hi,

Made an account specifically for this, not exactly sure where to post this, none of the other boards look relevant, so I'll put it here.

So I've done some tinkering on the Luanti source code. My derivative uses exclusively TCP packets to communicate between the client and the server.

Because of this, you can set up your server as a hidden service and run the client with torsocks to play over Tor. I have tested it and it works.

I am hosting the source code here: https://file.garden/ahyFC3XeRxe_Za_F/luanti.tar.gz

Note that it is 1.16.0 but modified, so if you run a diff between the 1.16.0 tag and my code you will be able to inspect for malware.
From my understanding of your post, this should be in the board "Luanti-related projects" since it seems like a fork.

Your post sounds interesting, although I haven't understood everything it does. Is it Multiplayer only or can you play normal Luanti in Singleplayer?

Also, what do you mean by 1.16.0? There is no such version, only 5.16.0dev and 5.16.1.
Hi!

luantiuser438
New member
Posts: 2
Joined: Sun May 31, 2026 18:53

Re: I modified Luanti to use exclusively TCP packets

by luantiuser438 » Post

***** NOTE: If the mods would like to move this thread to where it belongs, that would be greatly appreciated. I don't know how to do it. *****

Hi, so I think I explained it thoroughly. It's Minetest.. uh, erm, Luanti, but it uses TCP instead of UDP to communicate. This allows it to be used over the Tor Network. Yes, of course Singleplayer works.

There are a few bugs, liquid rendering seems to be a little borked, also it doesn't handle the connection dropping very well. Right now if the connection drops you need to manually kill the process. These are all things that can be fixed when I get the chance.

Basically if the TCP connection drops for whatever reason, TCP connections seem to do this occasionally, the client is unable to negotiate a new connection with the server, and the game crashes. This appears to be a code bug and not a fundamental limitation, though, I will work on it when I get the chance.

Also given that my primary reason for making this modification was to run Luanti over Tor Network, I added some disclaimers to the user interface. Really, you should be running this in a container or a clean fresh OS install because I do not have the resources to chase down exploits. Right now the disclaimers are kind of bugged out, I will also work on that eventually.

Also the version is 5.16.0, which according to my sources does contain a security bug. When I get the chance I can update it.

Also there are some files in there that will bork up the diff, if you want to produce a diff, you will want to remove public/, docs/mkdocs/venv, and docs/mkdocs/docs/*.md. This should clean up the diff significantly.
Last edited by luantiuser438 on Tue Jun 02, 2026 22:24, edited 4 times in total.

User avatar
Mantar
Member
Posts: 692
Joined: Thu Oct 05, 2017 18:46
Contact:

Re: I modified Luanti to use exclusively TCP packets

by Mantar » Post

Liquid rendering is bugged in 5.16.0.
Lead dev of Exile, git repo: https://codeberg.org/Mantar/Exile

bgstack15
Member
Posts: 77
Joined: Fri Feb 28, 2025 02:31

Re: I modified Luanti to use exclusively TCP packets

by bgstack15 » Post

Could this be used to prepare the application to be wrapped in TLS? I realize Tor network is different, but I would think that wrapping all this traffic in TLS could be useful for regular non-Tor folks.
cdb_5ea39b4225fd

Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests