Check the following items to try to resolve the issue:
Verify both devices are connected to the same network
Restart both the printer and laptop
Check for any new updates for device drivers
Have authentication or log in information ready if prompted
Ensure the printer is turned on and has enough paper