If you're talking about LANs and not Localhost, you should set up VLANs so your Internet of Things (IOT) stuff is on it's own network and your real stuff is on another. You could set up multiple VLANs to separate things even more. Here's an overview:
https://www.wikihow.com/Set-Vlan-on-Switch-Guest-WiFi
EDIT: Another possibility is, if you have a spare, old router lying around, put your IOT stuff on that one and keep your good stuff on your current router.