-
Type:
Bug
-
Resolution: Works as Designed
-
Priority:
Major - P3
-
None
-
Affects Version/s: None
-
Component/s: None
-
0
-
None
-
Not Needed
-
None
-
None
-
None
-
None
-
None
-
None
What problem are you facing?
Cannot connect (program hangs) a server located over a VPN. Localhost connects fine. Older drivers also work fine.
What driver and relevant dependency versions are you using?
I face the problem only on version 4.0.x. By using the previous release (3.6.10) everything works fine (both VPN and localhost).
Steps to reproduce?
I'm using this snippet of code:
const client = new mongodb.MongoClient(
"mongodb://10.2.0.30:27017"
);
try {
await client.connect(); //hangs here
const db = client.db("au15db");
await init_table({ db });
}
catch (e) {
console.error(e);
}
finally {
await client.close();
}
The remote server runs MongoDB 3.6, while the local one is 4.2.3.
I observed something strange in the near past with Compass, yet over the same VPN, and I've posted the issue (see above). However, it has been patched after some days.
- depends on
-
NODE-3646 Investigate NODE-3645 - Cannot connect to exported mongo on docker & connect method waits endlessly on VPN connection
-
- Closed
-
- is related to
-
COMPASS-4920 Can't connect via VPN after Compass update to 1.27.0
-
- Closed
-
- related to
-
NODE-3645 Cannot connect to exported mongo on docker
-
- Closed
-