I am also having this problem on Yosemite 10.10.5. If I turn the printer off, then on again, network connection is restored. It just won't keep the connection alive for more than a few hours. I did print the LAN details when the connection was active...