That seems odd. Maybe your site can't connect outside the server.
You can update WordPress through FTP. Simply go to WordPress.org, download the latest version and then extract the file. Once you have extracted the contents of the compressed file, you can upload it through an FTP client.
Hope it helps
If you find my replies helpful, give me a like or kudo🙂 And if I solved your issue, mark it as solution 😄