Osmoregulation in Marine Teleosts
Marine teleosts maintain a total ionic concentration in the plasma of approximately one third that of sea water. Most of the ions the fish will want are contained in sea water, so the principal feature of osmoregulation is actively to secrete sodium and chloride based ions into the water while "drinking" (ingesting into the stomach) large amounts of sea water to counteract the continual loss of water from the fish's blood at the gills.
The fish have special chloride cells in the gill filament and opercular skin epithelia to eliminate much of the excess salts through the aforementioned active transport. Marine teleost kidneys cannot produce a urine more salty than the blood (Schmidt-Nielson, 1975) and as such cannot utilise the marine elasmobranch method of osmoregulation which involve retaining a high concentration of organic salts to prevent the inorganic salts flooding the body. These organic salts are primarily urea and secondarily trimethylamine oxide at a ratio of 2:1.
Osmoregulation in Freshwater Teleosts
Freshwater teleosts tend to maintain an internal level of salts between a quarter and a third of the salt concentration of salt water (so less than marine fish, but not by a huge difference). However, the water they live in tends to have a Total salts level of 1-10 mOsm/L instead of sea water with around 1,000.
As can be seen, the problem for freshwater teleosts is not retaining water, but rather retaining salts and preventing the water entering the body from pushing out the salts to a point where the fish can no longer operate at a cellular level (internal drowning).
Freshwater telosts manage this through producing continual low salt dilution urine which is nigh on constantly being passed by the fish. The active transport in freshwater teleosts is in uptake of salts, rather than the expulsion seen in marine teleosts.