get ip of primary interface