Osmotic pressure is the pressure required to prevent solvent from passing through a semipermeable membrane from a region of higher concentration of solute to a region of lower concentration of solute.
Osmotic pressure depends on the concentration of ions, hence a difference arises when there is a difference in the conc. of ions on the two sides of the membrane.