Personally, I feel most productive if I can work on my planned activities without being interrupted. Interruptions that are due to technical problems such as authentication, buggy tools or similar impact my productivity the most (as they also impact my mood in a negative way).
I am also most productive working from home in my desired environment. So, what about you?