Generally it depends on if and how fast molecules of water and solvents are able to pass through the membrane.
Say sodium and water passes equally well, there will be a net flow of water one way, and a net flow of sodium the other way. Notice that the flow of water will make the water rise on the flow-to side, then pressure there will rise and oppose the flow.