Some cities like Austin, TX allow RVs within the city if you have enough setbacks.
Personally, it's quite easy to buy a small amount of land in unincorporated county land that's very close to a city. I did, and I can hit downtown in under 20 min. I wasn't even trying to optimize for distance, if I was I'd have bought 5 acres at 10 min out.