From border to vientiane distance about 200km.
From Hue or Danang, you can take the bus to Xavanakhet crossing Lao Bao border gate. You should have visa in advance , can not get visa at the border. Visa on arrival just available at the airport. Good trip to you.