How do you deal with loneliness in a world where dating can be difficult?

I've always struggled with dating. I don't know if it has to do with my looks, personality, my interests, my past traumas, etc. Everyone is different and for some it's easier than others, but for me I just can't seem to get it right. I struggle to meet new people and social anxiety makes things worse because I don't want to come off as a creep or be that annoying person. My loneliness comes in waves, sometimes I enjoy having my solitude but sometimes it would be nice to share it with someone. What are your thoughts and what are some ways to deal with it?
How do you deal with loneliness in a world where dating can be difficult?
Post Opinion