When I see remote workers in beautiful, usually beachy environments, I don't know how they do it. I struggle to keep focussed working from home in my apartment. Where there is bed, the fridge, TV, youtube, anything else to distract me. I have so much respect for those who can fully focus and switch into 'work mode' when not in the office. I definitely haven't found out how to do it yet.
One thing I've heard/read from remote workers sharing your struggle is to carve out a home office separated from the bedroom. It's not always doable because you might not have such a room in the first place. Another possibility is a shared office with other people. You rent a place with one or two people near your house and you close yourself in there. Lastly, there's the coworking option but I'm not a huge fan (even if in Barcelona last summer I really found a nice one), I only go there when the internet is down at my house :D
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.