Learn how to expose your local MongoDB server to the internet using ngrok TCP endpoints on port 27017.
As noted in this StackOverflow post, you can use a TCP endpoint to host your local MongoDB server. Open an ngrok TCP endpoint to your local MongoDB service which is usually running on port 27017.