I did it for a while when I was ‘freelancing’/unemployed. I didn’t get on with it at all, but I think my circumstances weren’t conducive to it working out at all.
I didn’t want to be there (I’d rather have been in a job), and I was living in a single room in a shared house, meaning I was sleeping in the same room where I was meant to be working.
It’s takes a lot of self-discipline to make it work, and I’m not sure that I have it.
Make sure that I have a routine, especially first thing in the morning. Set a time for you to be up, breakfasted, showered, dressed and at your desk, otherwise you will just drift.
Set a plan and a list of goals for every single day, maybe even every half day.
Have your computer in a different room to where you sleep.
Lock out your internet/specific sites while you’re working, and use them as a reward for completed tasks.
Go for a walk or arrange to meet someone for lunch or a coffee - it’s very easy to get cabin fever.