The invention discloses an Internet of Things device ID intelligent distribution method, which comprises the following steps: S10, uniformly writing default device IDs into an E2PROM of each device atan Internet of Things device end when the Internet of Things device leaves a factory; S20, the unique IMEI code of each normally working device is registered at the server side, and networking permission is obtained; s30, after the Internet of Things equipment terminal is started, the equipment terminal reads the equipment ID of the E2PROM, and sends an equipment ID allocation application to theserver when a judgment condition is met; s40, after the server receives the equipment ID distribution application and the IMEI code corresponding to the equipment, comparing and processing the IMEI code with an equipment database; and S50, when the Internet of Things equipment uploads data in use, an equipment ID and an IMEI code are contained in a data packet header, and the server reads the IMEIcode and the equipment ID at the same time and compares and processes the IMEI code and the equipment ID with an equipment database. According to the invention, after the networking module of the Internet of Things device is replaced, the ID of the device can still be kept unchanged; after the E2PROM is replaced, the device ID is not lost and remains unchanged.