I guess you dont know the whole server-client concept...
Try coding something small first like a chat or whatever.
Also try ANet, its based on ENet and its perfectly fine for coding a game (also for beginners)