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?
16 Replies
Project ID:
N/A
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
so if i want the code inside my project to connect to an FTP server, what should I do?
i thought you where asking how to connect to your railway deployments ftp server
okay for context i have a discord bot deployed on railway
and i want my discord bot to connect to my FTP
where is "your ftp"?
its hosted on my website
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.
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
whitelisting all ips and use a strong password with sftp
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?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
so do you ultimately recommend just whitelisting all ips with a strong password?
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)
cheers!
cheers to you too!