We show that a group $G$ acts properly and effectively on a locally compact and $\sigma$-compact metric space $(X,d)$ if and only if there exists a compatible $G$-invariant Heine-Borel metric $d_p$ on $X$ such that $G$ is homeomorphic to a closed subgroup of the group of isometries $Iso(X,d_p)$.