Let me lay a little 'southern' logic on you...
In highschool, we had a boy who was afraid to get hurt, so he'd let everyone push him around... basically whining about how badly he felt he was being treated and how unfair it all was. One day, a friend of his (what few he had) finally had enough of his whining and turned around real quick and punched him right in the nose. Needless to say, the guy was shocked and in a lot of pain. His friend says to him, "does it hurt?" and to that the boy said, "Yes." Then his friend says, "was it as bad as you thought it would be?" The boy thinks through the pain and had to be honest... "No." At that remark, his friend says, "And you're still living too... imagine that." From then on, the boy didn't put up with bullies anymore... even if that meant he'd have to fight. He wasn't afriad of being hurt anymore... he knew he'd live through it.
You seem to be a guy who's afraid of getting hurt, so much so, that you'd rather be lonely than risk enduring heartbreak for a chance to be loved. If you want a girlfriend, you're going to have to risk rejection to get it. If you want to be loved, you're going to have to risk heartbreak. Sometimes you win... sometimes you lose. But you know what? You'll live through it... You'll get better at recovering. Confidence will come with practice.
"The weakest soul, knowing its own weakness, and believing this truth that strength can only be developed by effort and practice, will, thus believing, at once begin to exert itself, and, adding effort to effort, patience to patience, and strength to strength, will never cease to develop, and will at last grow divinely strong."
- James Allen