The invention relates to a firmly plugged portable router based on the Internet of things, which comprises a main body and at least two network cable interfaces, and is characterized by further comprising a connecting mechanism, a retracting and releasing mechanism and a central control mechanism, a plugging assembly comprises a sliding block, a sleeve, a connecting rod, a connecting wire, a driving block, a first spring, two reinforcement rods and two electrodes, a limiting assembly comprises a first fixing rod, a second fixing rod, a guide block, a transmission rod, a second spring, a sliding slot, a rotating rod, a first limiting block, a first limiting rod, a second limiting rod, a clamping block and a torsion spring, and the retracting and releasing mechanism comprises a driving assembly, a guide rod, a connecting block and a second limiting block. In the firmly plugged portable router based on the Internet of things, the connecting mechanism improves the firmness of the connection between the router and a socket so as to reduce the dropping probability of the router, and the retracting and releasing mechanism not only realizes the retraction and release of the electrodes butalso reduces the loosening probability of the electrodes so as to improve the stability of the electrodes.