How is a temporary homeland of residence (Watan al-Iqamah) legally established by a traveler?

The Traveler's Prayer (صلاة المسافر): Distance and Duration