The hours may be long, but few professions offer as much flexibility as that of the software developer. I'm not just talking about not needing to dress or bathe properly. If you're a programmer on vacation somewhere and never want to leave, maybe you shouldn't. Many places will welcome experienced software developers with entrepreneurial spirit.
What does the welcome look like? In Thailand, the Board of Investment can help you with tax incentives, including an eight-year tax holiday that can be deferred for up to five years if you lose money during your first few (which is common with any start-up). The Board can help you with visas and all the standard legal stuff that might arise. If you become rather successful, there's a "one-stop shop" in Chiang Mai where they can connect you with various agencies for visas, taxes, and real estate.