Join a group or club
If you want to connect with new people, find the community activities that could be a good fit for you. You'll probably find that there are many opportunities to interact with people, from reading clubs and community service projects to hiking clubs and business societies.
At first, it could seem unpleasant, but it might also be completely worthwhile. In fact, socializing with people you have something in common increases your chances of making meaningful relationships, which is usually what lonely people lack in their lives. For example, enroll in a pottery class or a group for people who enjoy watching true crime movies. Don't forget to chat with many of people when you attend an event. You could find that going to a few associations or joining a few different groups makes it easier for you to meet more people.