I'm old enough to remember when a significant part of the "dream of the Internet" was that knowledge workers could work anywhere with an ISP.
Obviously that dream was not widely realized, but there are some employers that will allow you to write code from the countryside.