To get your printer back online when it shows as offline, follow these key steps:

1. **Check basic connections**: Ensure the printer is powered on, properly connected via USB, Ethernet, or is connected to the correct Wi-Fi network (not a guest or neighbor’s network). Also, check for any error lights on the printer[1].

2. **Power cycle devices**: Turn off your printer, restart your router/modem (wait 30–60 seconds), then restart your computer, and finally turn the printer back on. This refreshes network and device connections[1][4].

3. **Change printer settings on your computer**:
– For **Windows 11**: Go to *Settings > Bluetooth & Devices > Printers & Scanners*, select your printer, then check the print queue and **uncheck “Use Printer Offline”** if it’s selected. Also ensure the printer is set as the default[1][3].
– For **macOS Sonoma**: Go to *System Settings > Printers & Scanners*, select your printer, open the print queue and click **“Resume”** if the printer is paused or offline[1].

4. **Print a network configuration page** from the printer’s touchscreen or settings menu to verify its network status and ensure it’s connected properly[1].

If after these steps the printer remains offline, consider removing the printer from your computer and reinstalling it, or check for firmware/software updates from the printer manufacturer.

These steps cover the most common wiring, wireless, and system-related reasons for printers showing as offline and should restore normal operation in most cases[1][2][3][4].