Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.

The issue root caused to corporate network blocking the communication. I am able to resolve by creating a access point using raspberryPI. Did the installations mentioned here. Just switched the configurations for eth0 and wlan0. You need the wlan0 to act as your Internet connection, and eth0 to act as the access connection (which is the opposite of what's here). You can ignore step 5 and step 8.
https://thepi.io/how-to-use-your-raspberry-pi-as-a-wireless-access-point/