KB485030: How to connect to MongoDB by JDBC driver in MicroStrategy 2021 Update 2 with different port numbers
![Mongodb uses Mongo to report error: could't connect to server 127.0.0.1:27017, connection attempt failed: socket | ProgrammerAH Mongodb uses Mongo to report error: could't connect to server 127.0.0.1:27017, connection attempt failed: socket | ProgrammerAH](https://programmerah.com/wp-content/uploads/2021/04/20190718151734224.png)
Mongodb uses Mongo to report error: could't connect to server 127.0.0.1:27017, connection attempt failed: socket | ProgrammerAH
![MongoDB Connection Error Network is unreachable. Reason: couldn't connect to server localhost:27017, connection attempt failed: SocketException - Johnnn MongoDB Connection Error Network is unreachable. Reason: couldn't connect to server localhost:27017, connection attempt failed: SocketException - Johnnn](https://i.stack.imgur.com/5cNRA.png)
MongoDB Connection Error Network is unreachable. Reason: couldn't connect to server localhost:27017, connection attempt failed: SocketException - Johnnn
![Studio 3T Connection failed (MongoInternalException) to Mongodb database on remote Ubuntu VPS - Ops and Admin - MongoDB Developer Community Forums Studio 3T Connection failed (MongoInternalException) to Mongodb database on remote Ubuntu VPS - Ops and Admin - MongoDB Developer Community Forums](https://www.mongodb.com/community/forums/uploads/default/original/2X/8/8d2c97d8f5f7f3a220b918f81ac5798ca20f191b.png)