6 months ago
Hi Railway team! 👋
I'm looking to upgrade to the Hobby plan ($5/month) and need to confirm if it includes static IP functionality.
Use case: My FastAPI backend needs to connect to MongoDB, which requires whitelisting specific IP addresses for database access.
Currently on the free tier and considering the upgrade, but static IPs are essential for my MongoDB connection to work properly.
Thanks in advance!
11 Replies
6 months ago
The Hobby Plan does not include static IPs!
6 months ago
You can get static outbound IPs on the Pro Plan and above, more info on this here: https://docs.railway.com/reference/static-outbound-ips
Thanks for confirming that Hobby plan doesn't include static IPs!
I'm getting SSL handshake errors when trying to connect to MongoDB Atlas from Railway. Is this related to the lack of static IPs, or could there be another solution?
Error details:
SSL handshake failed: [SSL: TLSV1ALERTINTERNALERROR] tlsv1 alert internal error (ssl.c:1000)
Questions:
1 - Can I whitelist Railway's IP ranges in MongoDB instead of static IPs?
2 - Are there specific SSL/TLS settings needed for Railway → MongoDB Atlas connections?
3 - Should I configure my MongoDB connection string differently?
6 months ago
I'm not well versed in networking by any means but by searching older threads related to MongoDB Atlas this is what I've found:
You can try whitelisting
0.0.0.0/0in AtlasThere's this IP range list
6 months ago
Hopefully another community member can give you a better answer in this thread
Thanks for the suggestions!
Regarding the 0.0.0.0/0 whitelist: I'd prefer to avoid this approach as it opens my database to all IPs, which isn't ideal for security.
Testing with other providers: I've actually tested with another hosting provider that offers static IPs, and the connection works perfectly when I whitelist their specific IPs in MongoDB Atlas. This confirms the issue is specifically the lack of static IPs on Railway's Hobby plan.
My situation: I really like Railway's performance and developer experience, but I need static IPs for secure MongoDB access. The Pro plan ($20/month) is outside my budget - I was hoping to use the Hobby plan ($5/month).
**Question for the community: **Has anyone found a workaround for connecting to MongoDB Atlas from Railway's Hobby plan without using 0.0.0.0/0? Or is upgrading to Pro the only solution for static IPs?
Would love to stick with Railway if there's a secure way to make this work!
6 months ago
You can whitelist the CIDR range for your region, check the IP range list link medim shared above.
5 months ago
@Ali1King Did whitelisting the CIDR range fixed your issue?
5 months ago
Hey, static IP is available only on the Pro plan
5 months ago
!s
Status changed to Solved medim • 6 months ago