solder flows to the heat by capillary action.
if, you are trying to solder one side of a coupling, and do not want solder to run to the other side
it is all in the position of the fitting and the heat placement
1, do not use so much solder, an experienced hand can do this task easy
2, position the coupling so the unsoldered portion is point up
3. paint the inside of the coupling with pipe dope, where you do not want solder.
then after it cools, clean the burnt dope out of the fitting
a coupling with out stops is called a slip coupling
a coupling with stops , the stops are called dimples
the solder will flow over the dimple like it was not there