Check the following.
The default gateway address is correct if you set the printer’s TCP/IP Setup setting to Manual.
The device that is set as the default gateway is turned on.
Set the correct default gateway address. You can check the default gateway address from the Network Status part on the network connection report.