I’m thinking in the U.S. and Canada. For example, if you’re on vacation, you’ve checked out of your hotel room and have several hours until your flight, and you have some cans of beer left over. I know you could sneakily drink them in a park or something, but I’m just curious if there’s any way to do it that’s legal.
Some restaurants have a bring your own” policy. Go there, order food, and then you can drink your own drinks.
It’s called “droit de bouchon” in France, meaning “cork right”. Very old practice, commonly used by professionals
In the US you’ll often be charged a corking fee if you do it.
Around here (Boston), it’s because liquor licenses are so expensive and difficult to get. Some restaurants can’t afford them or for some reason can’t get one, so they let you bring your own. No corking fee