There are rarely ever any quick fixes for anything, especially things that are valuable and need time to deepen and grow into something that meets our needs as human beings - relationships (of any kind) are in that category.
Also, there ARE people who need relationships in order to feel whole, and that's NOT a weakness in my opinion. In fact, it takes a certain strength to connect emotionally with other people, and I've noticed when I feel strong, I reach out, but when I feel weak, I retreat. If you discover you are someone who needs and wants a significant relationship to be fully happy, GOOD for YOU!! Of course, that doesn't make the finding of one any easier, but if you know what you need, you can focus on finding it instead of denying that part of yourself trying to be a different person than you really are.
But with that being said, there are things you can do that will help you feel more connected and less lonely. You can come on here and post, you can go on other sites for people with similar interests to you and post, you can get out and meet new people...do you have family? When my kids were babies, and I'd be up late into the night feeding them or rocking them or whatever, I could call my aunt, who was a night-owl too, and have the best talks!! It made the tedium enjoyable and are some of my FAVORITE memories!!!
The important thing is to readjust your expectations of how to get your needs met, and find new ways to accomplish that. There are a whole bunch of different experiences available to you, you just need to find them and welcome them!!