Online PvP Game

Please, help me understand - how to make game fight like in “Clash Royale” - Player & Player. What do I need? Server, or other information.
Maybe UnrealEngine4 Guru read this)

i have just download the clash of magic the coc mod from https://theclashofmagicapk.com