Hi @Keerthi Chebrolu ,
According to my research, the issue can be caused in remote server side.
For example: the remote server is running, but the service that you're trying to connect to is not available.
Please have a double the SharePoint project is running well in remote server.
More details you may also refer this.
If the answer is helpful, please click "Accept Answer" and upvote it.