You're right. You could find yourself capped in salary/advancement (though that could also happen in management as well). In a case like that you might find that you have to become an entrepreneur and do your own thing, move to another market, or try to find remote work.
Remote work used to be the exception though it seems like more and more places are doing it at least part of the time now and some notable companies are entirely distributed.
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.