Ectoparasites (such as the bedbug) live on a host.
Endoparasites (such as Trypanosoma brucei, which causes sleeping sickness) live inside a host.