Trouble connecting Octopi to wifi

What is the problem?

When I write Octopi to SD card and conficure the wifi details in the supplicant document, I put the sd card in the Raspberry pi 4. It connects fine and gives me an IP. I set up octoprint. I then switch it off. When I turn it back on again, I get no IP to connect to. It only seems to offer one chance to connect, straight after a fresh build. Once it is powered off and turned on again I can't connect.

What did you already try to solve it?

I have tried rebuilding, adding to reserve list in DHCP