R
Railway12mo ago
Shreyas

What is my deployment's IP address?

I'm looking to connect my app to my website's FTP address, but i'm unsure what IP address I need to unlock?
Solution:
whitelisting all ips and use a strong password with sftp
Jump to solution
16 Replies
Percy
Percy12mo ago
Project ID: N/A
Brody
Brody12mo ago
1. railway deployments have dynamic ips, it is never a good idea to use an ip for anything in this regard 2. railway does not do anything with s/ftp
Shreyas
Shreyas12mo ago
so if i want the code inside my project to connect to an FTP server, what should I do?
Brody
Brody12mo ago
i thought you where asking how to connect to your railway deployments ftp server
Shreyas
Shreyas12mo ago
okay for context i have a discord bot deployed on railway and i want my discord bot to connect to my FTP
Brody
Brody12mo ago
where is "your ftp"?
Shreyas
Shreyas12mo ago
its hosted on my website
Brody
Brody12mo ago
okay well im sorry to say this, but this is a coding question with no real relation to railway and thats not quite what these help threads are for. im sure there are plenty of ftp client libraries and tutorials for said libraries.
Shreyas
Shreyas12mo ago
let me clear up what i'm having an issue with: i know how to open a connect to an FTP server, my issue is, i need to have a specific IP unlocked so that my code (that is deployed to railway) can connect to the FTP. So i'm trying to figure out what the IP of my deployment is, but i'm aware that deployments have dynamic IPs so what do you recommend?
Solution
Brody
Brody12mo ago
whitelisting all ips and use a strong password with sftp
Shreyas
Shreyas12mo ago
is whitelisting all IPs just 0.0.0.0? is there no prefined list of what IPs deployments use so i could just whitelist those IPs instead?
Brody
Brody12mo ago
you would have to whitelist 26 cidr ranges https://utilities.up.railway.app/cidr-list?value=us-west1 whitelisting such a list would bring negligible security benefit, since getting an ip within that list is as simple as deploying to railway or getting a google cloud vps
Shreyas
Shreyas12mo ago
so do you ultimately recommend just whitelisting all ips with a strong password?
Brody
Brody12mo ago
theres not all that much difference in whitelisting many thousands of google cloud ranges or all ip ranges so yes, a very stong password with sftp (not ftp)
Shreyas
Shreyas12mo ago
cheers!
Brody
Brody12mo ago
cheers to you too!
Want results from more Discord servers?
Add your server