You need to understand something about human nature for starters.
Loneliness, isn't being alone-in terms of being isolated or in solitute, you can be with 50.000 women close to you all day, but if none of them understands you and makes you feel connected to you, you will feel lonely.
Now about the other side of the spectrum which is friendship, the same principle applies.
Based on what i read in your responses, the problem seems to be a difference in comprehension between you and the people you interact in general, in this case both the internet and real life.
This will sound unreasonable but, if you want to attract truly intelligent people, then self pitying is the worst way to do it, unless someone who understands what's based on, and cares enough to analyze it appears, that loneliness will continue given how your decisions lead to a path that doesn't cure it.
Now let's get once again to "loneliness".
The only ways to cure that lonely one yours are 4.
1)Find someone you can respect, and consider equal in terms of comprehension and understanding, someone who doesn't force you to lower your level for the sake of communication, someone you can be yourself with, and even antagonize with.
2)A "soulmate", now that's easier said than done, for multiple reasons, especially how the concept of love is a fairy tale in a society that relation ships between males and females are mostly a market of various circumstances and conditions, money/social image power/appearance etc. But!
If one of them IS TRULY connected to YOU. It can work. Whether it will stay or get ruined afterwards is another subject.
3)Stop being so one dimensional, stop considering each person a-way to cure it, and see them as different parts to cure different sections about your loneliness. For example.
Person a:Is there for shitty banter.
Person b: Is there for deep intellectual talk.
Person c:Is there for sexual talk.
If you can be selfish enough to do that, it might just work.
And the final option.
4)Become someone who can enjoy the company of himself and his own thoughts, detached in other words.