Unable to Deploy App when using Rpackage Manager

Hi All
I am trying to deploy an app to Rstudio connect from Rstudio IDE. I am using private repository which we have created in the Rstudio package manager. It seems like the connect server is not able to reach the package manager. I am giving the error log below. Request your help to sort this out.

LOG:

curl: HTTP 000 https://rpackagemanager.company.com:4242/dev-repo/latest/src/contrib/PACKAGES.rds
[Connect] 2020/10/21 04:35:35.599028320 curl: (6) Could not resolve host: rpackagemanager.company.com

unable to access index for repository http://rpackagemanager.company.com:4242/prod-repo/latest/src/contrib:
[Connect] Build error: RStudio Connect cannot download a package because the R package repository (for example, CRAN or RStudio Package Manager) cannot be accessed. (r-cannot-access-repo)
Application deployment failed with error: RStudio Connect cannot download a package because the R package repository (for example, CRAN or RStudio Package Manager) cannot be accessed. (r-cannot-access-repo)

This seems like a problem with your networking. Have you opened port 4242 on the package manager instance? Can you successfully ping package manager from your Connect instance?

Our support team might be able to help you, so I suggest you open a support ticket at https://support.rstudio.com/hc/en-us/requests/new and provide as much detail as you can.