Change get getipaddr to default to loopback

Allows building with no external IP address:

62d0b3d4 introduced a dependency on getipaddr(), which previously raised an error if no
external address was found. This broke bootstrap on a loopback-only network.

closes #5945