In a Host-based Intrusion Detection System (HIDS) or a Host-based Intrusion Prevention System (HIPS), the software is installed directly on a client machine, such as a Windows 10 PC. However, if either is installed on the local machine, the HIDS/HIPS would only be able to screen traffic entering or leaving the local machine. If a threat enters the network, theHIDS/HIPS won't be able to detect or filter the malicious traffic unless it's incoming on the local machine.
In a Network-based Intrusion Detection System (NIDS) or a Network-based intrusion prevention System (NIPS), the appliance is installed on the network segment. The advantage of using a network-based appliance is that it has the ability to screen all traffic flowing through it, so it is likely to detect and stop threats spreading across the network