The most likely problem in this situation is: All traffic should be going in the same direction, and either you or the other driver is going the wrong way.
In most scenarios on a two-lane street with a broken white line, each lane is designated for traffic moving in the same direction. If you see a car approaching you in the opposite lane, it suggests that one of you is not following the correct traffic pattern.