Detailed description
As a rule, you must apply for a passport at the competent authority in your main place of residence.
In certain cases, it is possible to apply for a passport at another location, for example, because you are temporarily staying in another city. To issue a passport, the competent authority at the location of your application must obtain approval (passport authorization) from the competent authority at your primary residence. Whether the application is approved outside your place of residence is at the discretion of the competent authorities. There is no legal entitlement.
Even if you don't have a permanent residence, you can still apply for a passport. You must submit an application to the relevant authority in your place of residence.