Could not sign in to XCode after connecting to VPN
I have MacBook Pro 13inch with MacOS 10.15.7.
I use Cisco Any Connect to connect to the VPN address provided by the organisation but the problem is that after connecting to the VPN, when I open XCode (12.4) it asks me to sign in again and when I do that it keeps trying to sign in and then after sometime it gives the error that- "We're having error connecting to the Apple Server".
Also, after connecting to VPN internet doesn't work on my system, for Chrome and as well as Safari. But I tried to configure Firefox using the proxy settings provided by the IT Team and Firefox works well after connecting to VPN.
I have tried applying the same proxy settings for system wide access under Networks>Proxies but none of the options are working- HTTP Proxy, HTTPS Proxy, SOCKS Proxy, internet still doesn't work.
Can someone please provide the solution for it?
MacBook Pro 13″, macOS 10.15