Look for communities or forums where developers discuss creating private servers for mobile games. Tools like apktool and dex2jar can be used for analyzing and modifying APK files.
Creating a functional server for an old version requires deep reverse engineering of the game's network protocol: clash of clans private server old version work
The logic is simple: