run network test on the loopback interface only

We have a sandbox for building packages that doesn't allow this and 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.

Change-Id: I6cf82d6bd67437dc29d7f9d6c886dadb6e6d8f95