I'm looking to identify a book I read 10+ years ago about aliens who come through a space gate near Mars or Jupiter. They defeat Earth's space military and come to Earth to kill all humans. But they decide to blow up the planet. They see a spaceship that they missed go through the space gate that they came through.
Humans come out of the space gate and search for a planet to land on. They find one, but it has alien life on it. They land on the alien planet and meet the aliens living there. The aliens welcome them once they find out they are the last of their species. The humans and aliens become allies, and the book ends.
I remember that before Earth got blown up, the aliens were shooting at Earth, and the Atlantic Ocean rose high and destroyed a major city then they blow up Earth. I don't remember which city the Author was describing. Yet