Convenient way to get the two kinds of address.