I have three very good friends who are fairly longstanding. I have several other friends who I see now and again or, if they live a long way away, I who I write to.
One of those friends is a former work colleague who lives nearby, another is the mum of my daughter's school friend and the other I met while I was doing a training course. Most of my other friends go back at least 40 years - former neighbours, former work colleagues, former mums of my daughter's friends, former writing group members, etc, etc.
As someone else said, if you want to and are able to have a dog, it is one way of chatting with people. I'm not sure if that is likely to lead to a friendship but it is still nice to chat to people when you go out. One of my friends has an allotment and has met people through that, another joined Ramblers. Then there are choirs, adult education classes, book clubs, and exercise classes (though I have never found exercise classes conducive to making friends as, in my experience, there isn't much opportunity to chat).
It's great that you have decided to actively seek friends rather than hoping, as some people do, that in some magical way they will just turn up (though that does happen sometimes - but not often).