Error connecting to Apple ID server

First guess would be that it's not online so can't reach things. A bit more detail would help. When did this start, did anything happen before the issue started, can you logon to your accounts on other devices, does the computer reach every other web site normally?