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