I guess I have done both but not for the same reason. If I see someone online who is local and they seem interesting, I will drop them a line to see if they would like to talk not necessarily for a hook up but just to be able to talk with like minded people.
If I am looking for a hook up, I am too shy to approach anyone whether it be online or real life.