Collect good thoughts to share with those people who come your way, and soon others will search for your companionship like the proverbial guru of the mountain. See that you visit the Senior Center regularly and meet new people. You will find many individuals there that are involved in social gatherings of various types. Commit yourself to one or more groups that you find of interest. If you are lonely, go to church.
Most churches care for their people and treat everyone who attends like family.
If we cut the church out of the community there would be tens of thousands of more lonely people. I have heard some people say, I went to church and the people were unfriendly. If we are friendly, the church will be friendly. Loneliness is often caused by wanting people to do something for us. When we do things for other people, we are never lonely.