Fixed empty IP address when en1 is not the default interface

Sometimes instead of `en1`, `en0` is the currently active interface.
This fix checks if `en1` has an IP address and, if this is not the case, reads the IP address from `en0` instead.