Hardware-based firewalls are particularly useful for protecting multiple computers and controlling the network activity that attempts to pass through them.
Many vendors and some internet service providers (ISPs) offer integrated small office / home office routers that also include firewall features.
When your computer is accessible through an internet connection or Wi-Fi network, it is susceptible to attack.