1. Delete the existing printer first.
  2. Download the Canon UFRII driver for the printer model you have from the Canon Support portal such as the link below:
    https://www.usa.canon.com/support/p/imagerunner-advance-dx-c5840i
  3. Extract the zip folder and run x64\setup.exe.
  4. Approve any screens that pop-up.
  5. Click Next > Yes > Custom option > Next > Next > Next.
  6. Click Add Port> Choose Standard TCP/IP Port and click OK.
  7. Click Next > Put in the IP address of the printer > Next > Finish.
  8. Name the printer such as PR0003-####.
  9. Click Next > Click Start > Click Exit.
  10. Try to print.