It doesn't use a remote connection. It uses FTP to upload a php page and then uses that php page to retrieve your database information.
The issue could be a server configuration issue or it could be an issue with your testing server definition. I'd need a copy of your site definition to fully debug. If you want to export it and send it to me as a private attachment I can do more research to determine the problem.