Fetch only the default ip address

On machines with multiple IP addresses, it was producing
ugly results.

This code fetches only the default public IPv4 address.