Apologies, I forgot to update this. The modem had gone bad. I didn't even think of the modem being the problem because people have modems for years and I've never known one to intermittently misbehave. I bought a new one and all is well.