Smoking is one type of self-medicating, for compulsive personalities. Gives them something to do and relaxes them.
Giving up smoking is more difficult if you don't have a plan. You can't stop a habit, you can only replace it. Whether you realise it or not, that what you have done with smoking.
Drinking is a lot more complicated, as drink and effect you in many ways, lowering your inhibitions, making you feel more outgoing, forgetting your problems etc. The effects drink has on you can change depending on how much you drink. Was the self-medicating effect you wanted after the 3rd drink or the 10th.
aussielong, You need to get some help.
WSS.
I smoked from the age of 11 or so, when I did stop 20 years later I felt really weird for months. I was so used to using nicotine to de-stress/deal with boredom/whatever, I had to make a conscious effort to replace it with something else. And not be with people that got on my nerves too much down the pub. Then years later I stupidly smoked again when drunk so had to kick it once again.
Aussielong, I'd do what others say, as in replace it with something else, but also have a chat with your GP. Pretty sure most towns have alcohol advisory services, they may have counselling/group therapy/support groups. I know this as I come from a family of alcoholics and am always terrified about my own drinking and going that way myself so have checked out services in the past. Doesn't mean you have to go into endless therapy, but they should be able to give you coping mechanisms.
I've read other articles where people have tried AA, decided not for them in the long-term but done other things like hypnotherapy, yoga (and climbing) to give them something else to do.
I'm not an alcoholic, but it's always in the back of mind, for me it was very easy to drink too much when fed-up after bereavements, moving cities and losing my social network, and other things. I have no idea if it's genetic in my family, I think it's more likely learnt behaviour as I've always seen others do it at all times, but you can debate that all day. I've used it to deal with social anxiety, when depressed, when wanting to have a good time... list goes on. But your life doesn't fall apart without it, however it takes some time and effort.
I'd start by replacing the habit, and chat to your GP to see what help is available if needs be. Good luck with it.