Arduino mkr 1010 wifi exit sleep mode when trying to access IP Address

I have an arduino MKR 1010 wifi and I need to put it into sleep mode until someone goes to the
IP address associated with the device. Is there an easy way to do this?