Cannot get printer to connect wirelessly
I have been using the same printer, same computer, same wireless router for months with no issues, but it suddenly won't connect wirelessly. The printer shows a different ip address than the computer - not sure if that is the issue, and if it is, not sure how to change it. I am on OS X Yosemite, and my printer is HP Officejet 6500 E710n-z. I have tried reconnecting with the router by pressing the wps button on the router, and it does connect, but my computer says the printer is offline. Any suggestions would be greatly appreciated.
iMac, OS X Yosemite (10.10.1)