You need a home office, a separate room in your home. It's too easy to get distracted otherwise. Simple as that.
1. https://www.youtube.com/watch?v=snAhsXyO3Ck
2. https://www.youtube.com/watch?v=snAhsXyO3Ck&lc=Ugzl3DOl0s0oS...
For instance having a set schedule, regular breaks, getting fresh air and filling the social need is not something that comes naturally to everyone or that a home office magically solve.