The IP address is incorrectly assigned.

If the IP address assigned to the printer is 169.254.XXX.XXX, and the subnet mask is 255.255.0.0, the IP address may not be assigned correctly.

Select Settings > Network Settings > Advanced > TCP/IP on the printer’s control panel, and then check the IP address and the subnet mask assigned to the printer.

Restart the wireless router or reset the network settings for the printer.