Air Namibia has several flights a week between Windhoek’s Eros Airport and Walvis Bay, from where you can easily catch a bus or taxi to Swakopmund.
Also consider Town Hopper, which runs private shuttle buses between Windhoek and Swakopmund (N$270), and also offers door-to-door pick-up and drop-off service.
Finally, combis (minibuses) run this route fairly regularly, and a ride between Windhoek and Swakopmund shouldn’t cost more than N$120. Swakopmund is also a minor public-transport hub, serving various regional destinations, including Walvis Bay by combi, with fares averaging between N$25 and N$50.
Swakopmund is about 400km west of Windhoek on the B2, the country’s main east–west highway. Paved roads connect Windhoek to Swakopmund and continue south to Walvis Bay, from where a predominantly gravel road continues to Sesriem, the base town for Sossusvlei. All of the above is accessible in a 2WD.
Hitching isn’t difficult between Swakopmund and Windhoek or Walvis Bay, but conditions can be rough if heading for Namib-Naukluft Park or the Skeleton Coast; hitchers risk heatstroke, sandblasting and hypothermia – sometimes all in the same day.