Hello isabella_paige04,
Thank you for reaching out to Apple Support Communities, and we'll be happy to help in any way we can. We understand you're having issues with an error connecting to the server when trying to reset your password. Does this also occur when you test on another Wi-Fi network?
Also, try the steps here to see if they resolve the issue: Solve internet connection problems on Mac - Apple Support
"Check your Wi-Fi connection
If you usually connect to the internet using a Wi-Fi network, make sure you’re connected to the Wi-Fi network.
If you’re connected to the Wi-Fi network but you can’t connect to the internet, there might be a problem with the network’s internet connection. If you set up the Wi-Fi network using an AirPort device (such as an AirPort Extreme), you can get information about the device and its internet connection by using AirPort Utility. For more help while using AirPort Utility, choose Help > AirPort Utility Help.
Check your cables and external devices
Make sure all cables are properly connected. If you’re using an external modem, be sure one cable firmly connects the modem to your computer, and another connects the modem to a working wall jack.
Check that all external devices such as modems, hubs, and routers are plugged in, turned on, and have started up completely. Try resetting these devices by unplugging them for a couple of minutes, then plugging them back in.
Check the indicator lights on the device to see whether it’s registering a connection to the network and to your computer. If an indicator light does not come on, refer to the documentation that came with your device or contact your ISP.
Check your internet service
If all of the above are set up correctly and you still can’t connect to the internet, call your ISP. There may be a temporary problem with the service."
We hope this helps.
Cheers!