how to get nestjs app ip address?

khaledHOBBY

a year ago

Hello i have nestjs app runing here on railway , how can i get ip address for my app ?

5 Replies

This thread has been marked as public for community involvement, as it does not contain any sensitive or personal information. Any further activity in this thread will be visible to everyone.


jose1usecheTRIAL

a year ago

Hi, I’m encountering the same issue. I urgently require the IP address of my application for use in MongoDB’s Network Access due to security considerations. I don’t want any backend to have access to my database; I only want the application hosted on Railway to have exclusive access to MongoDB. To achieve this, I need the IP address of my Railway-hosted application


a year ago

Static shared IPs for outbound traffic are only available on the Pro plan.


jose1usecheTRIAL

a year ago

Only for the Pro plan?

Does the Hobby plan not have the ability to give me an IP address of my application hosted on Railway to configure it in MongoDB’s Network Access?

I would really appreciate any details you could provide me regarding this information.


a year ago

That's correct, static outbound IPs are only available on the Pro plan, once on the Pro plan it's as simple as flipping a switch in your service settings, then you use the given IP in atlas to whitelist access.