The calculated distance (air line) between Beihai and Xucheng is approximately 105 miles respectively 168 kilometers.
By car or train, the actual journey to Xucheng is certainly longer, as only the direct route (as the crow flies) between Beihai and Xucheng has been calculated here.