Dreamweaver uploads a file to your server and uses that for the connection, so no remote connection is necessary. If the connection isn't working, it is most likely an issue with the testing server definition in Dreamweaver. Usually the problem is the site URL setting.