To significantly promote Internet of Things (IoT) development, 5G network is enabled for supporting IoT communications without the limitation of distance and location. This paper investigates the channel allocation problem for IoT uplink communications in the 5G network, with the aim of improving the quality of experience (QoE) of smart objects (SOs). To begin with, we define a mean opinion score (MOS) function of transmission delay to measure QoE of each SO. For the sum-MOS maximization problem, we leverage a game-theoretic learning approach to solve it. Specifically, the original optimization problem is equivalently transformed into a tractable form. Then, we formulate the converted problem as a game-theoretical framework and define a potential function which has a near-optimum as the optimization objective. To optimize the potential function, a distributed channel allocation algorithm is proposed to converge to the best Nash equilibrium solution which is the global optimum of maximizing the potential function. Finally, numerical results verify the effectiveness of the proposed scheme.