Cloud gaming is a relatively new trend in gameplay nowadays. It sends the user’s actions to the gaming server through the internet, having the data and computation of game software processed in the cloud server, and then sending the gaming screen to the user’s computer. The advantage of such a method is that it prevents users from wasting money on unneeded hardware upgrades. The same game can run on many platforms simultaneously, decreasing hardware requirements. The 5G mobile network is becoming increasingly popular; it offers a better environment than the 4G mobile network, 10 to 100 times quicker internet speed, and reduced network energy usage, making cloud gaming a more delightful experience. However, safe data access in the cloud remains a primary priority in such a system. This paper proposes a robust system allowing users to access the game securely and authentically through cloud space. In addition, to defend against specific network assaults, we employ an intrusion prevention system. Our system is implemented in an ideal simulation scenario to demonstrate the functional advantages that improve the next-generation gaming experience.