Warcraft 2 and 3 both got illegitimate Battle.net servers. It seems to work very well. Not sure it’s legal but it’s a model that I could see a sensible game company adopting: give out the server code as part of abandoning support.
They also afforded options blizzard had been too lazy to bother with, such as playing on a favorite patch, etc.