run network test on the loopback interface only

We have a sandbox for building packages that doesn't allow this.
Also, it seems to be a good idea in general not to bind to all interfaces,
some of which will be reachable from other machines to run simple tests.