我有一个安装了 64 位 Mongodb 的远程服务器并让 mongod 运行。我正在测试从家里连接它。使用以下连接字符串 C#:
connectionString = "mongodb://Administrator:mypassword@x.x.x.x:27017"
连接失败并出现以下错误:
Unable to connect to server x.x.x.x:27017: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond x.x.x.x:27017
我需要在我的服务器上进行配置吗?还是在我的连接字符串中?