this topic might be more appropriate to be put in the library category, but this is not suposed to be a question about any library.
In Minecraft in some very early update, offline singleplayer worlds were given multiplayer features. If you’re playing on a singleplayer world, you basically have a server and a client connected to the server without an internet connection in the same instance of the game and you’re controlling that client.
My question is how to do this exact thing.
I am working on a sequel to my game DubTank, which I didn’t have a chance to release in time, because like a week before my planned release a game called Diep.io came out, which is pretty much DubTank with a different look.
Right now I want to have a working LAN-based server; I don’t care about a global server right now as me and my friends are going to test it and we won’t have a 24/7 online server to connect to.
Also, I’d like to have 2 or more offline clients connected to the server (for splitscreen);