#connect to my mongodb from outside of my project?

30 messages · Page 1 of 1 (latest)

wide inlet
#

hoyy, how do i connect to my mongodb from outside of my project? (like mongosh and compass) I'm probably missing something in the options but just the link won't do

thorny gyroBOT
#

Project ID: N/A

empty idol
#

You can find a public MongoDB connection string in your MongoDB service, you can use that to connect to MongoDB from outside your project

Although I'm unsure why you're saying "just the link won't do", what do you mean by that?

wide inlet
empty idol
#

Strange, I just connected to my MongoDB database on Railway perfectly on Compass 🤔
are you sure you're copying the correct link?

#

(MONGO_URL and not MONGO_PRIVATE_URL)

wide inlet
#

Same error when trying to access it from my actual app with mongoose (not the deployed one the one on my pc)

#

but as i said putting it as an enviroment variable to the deployed app works perfectly fine

empty idol
#

That is uncanny

steep island
#

would it be possible that you are behind a firewall such as at a workplace or school?

#

oftentimes firewalls at schools or workplaces block non standard ports such as the random high value ports railway uses for the databases

wide inlet
#

Well it doesn't work outside of my vm or on my friend's pc so that's not the problem

steep island
#

are you using the correct environment variable

wide inlet
steep island
#

can you tell me the domain for the tcp proxy?

wide inlet
steep island
#

I would appreciate if you could stop the ping replies

wide inlet
#

sure

steep island
wide inlet
#

@viaduct.proxy.rlwy.net:20212

unique karma
#

happening to me as well since a few days ago

steep island
#

hys are you sure you cant waive your fingers and make it work?

unique karma
#

well i already deleted the whole database and deployed a new one and i still can't connect outside of railway lol

#

been using the "data" tab since then

junior pilot
#

😧

steep island
#

use dbgate in the same project?