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