In many programmes, the partner universities reserve accommodation in university residences. If this is the case, return the room reservation forms to the respective host university department in plenty of time.
Accommodation is not guaranteed: certain universities, especially in cities, do not reserve rooms. This means that you will have to find your own accommodation. Plan for a weekend in the host town to search for accommodation. Do not hesitate to ask the accommodation service of the university for addresses.