How to Build an Online Game Yourself, Free, at Home

The Second Life route the original answer describes still works as a learning exercise: get an account, meet people who can script, texture and build, sketch out a story or adapt a piece of history into a scenario, hide a few Easter eggs, and use the residents as your beta testers. You learn the whole pipeline without paying for infrastructure.

But if you want to actually ship something, start with a free engine instead. Godot is genuinely free and open source, Unity and Unreal have free tiers, and each has an enormous tutorial library. Build something tiny and finish it.

Multiplayer is the hard part, and it's where most first projects die. Networking, synchronisation and cheating prevention are separate skills from game design, so consider making a single-player game first and adding online later.

Free hosting for a small project is available, and the honest timeline is months rather than weeks. Good luck.