To reasonably allocate the heterogeneous network resources of Internet of Things (IoT) to meet the various needs of users in a cost-effective manner. The study proposes an improved genetic algorithm (IGA) method for finding the optimal solution of heterogeneous network resource allocation. The method first transforms the IoT heterogeneous network resource allocation optimization problem into an objective function to find the optimal solution problem, then uses the improved genetic algorithm to find the optimal solution under the constraints, and finally analyses and simulates the performance of the model for application. The results show that the algorithm stabilises after 10 iterations in the IoT-23 dataset and 14 iterations in the IoT-Healthcare dataset, with stability values of approximately 3.16 and 3.14 respectively, and that the computation time of the algorithm is 8.8m and 3.6m in the two datasets respectively when the number of users is 100, which is much less than the other two algorithms. In the simulation experiments on the accuracy of the calculation results, the study achieved an accuracy rate of over 92% and 94% in A and B respectively. Combining the above data, it can be shown that the method can accurately achieve the efficient allocation and utilisation of resources under the constructed network environment and demand.(Abstract)