People who live in illegal rental houses cannot apply for residence permits, because they need to issue a house lease contract signed with the landlord to apply for residence permits. The registration department will input the address into the system, and it will show that "the house has not gone through the registration formalities".
I suggest you rent a legal house, otherwise your legitimate rights and interests will not be guaranteed.