R
Railway2y ago
Gaura

IP of my railway deployment

Heyo there! I'm trying to connect a database instance I have hosted elsewhere, to my nodejs application hosted on railway. I need to whitelist the IP of my app, how do I find it?
46 Replies
Percy
Percy2y ago
Project ID: 4b66c0f6-c8d5-4416-b0fb-9edcba8f0932
Gaura
GauraOP2y ago
4b66c0f6-c8d5-4416-b0fb-9edcba8f0932
Gaura
GauraOP2y ago
what exactly does it do?
Brody
Brody2y ago
gives you the ranges for your region
jackson
jackson2y ago
goated tool btw
Gaura
GauraOP2y ago
ic but how do i find my region🧐
jackson
jackson2y ago
think you can just plop your instance's deployment domain thingy in there and it will pull the ip ranges
Brody
Brody2y ago
read what the site says lol
Gaura
GauraOP2y ago
the problem is that i don't have a url and don't know how to find the other two
Brody
Brody2y ago
you don't know the domain of your service???
Gaura
GauraOP2y ago
doesn't have one
Brody
Brody2y ago
make one then lol
Gaura
GauraOP2y ago
like quite literally i wanted to avoid that lol but alr i can remove it after anyway i think
Brody
Brody2y ago
there you go, all 27 ip ranges in cidr format
Gaura
GauraOP2y ago
cool ty
sing ip 104.196.232.237 from host discord-timed-message-production.up.railway.app

found 104.196.232.237 in cidr range 104.196.224.0/19 with region us-west1

all 27 cidr ranges for us-west1

34.19.0.0/17
34.82.0.0/15
34.105.0.0/17
34.118.192.0/21
34.127.0.0/17
34.145.0.0/17
34.157.112.0/21
34.157.240.0/21
34.168.0.0/15
35.185.192.0/18
35.197.0.0/17
35.199.144.0/20
35.199.160.0/19
35.203.128.0/18
35.212.128.0/17
35.220.48.0/21
35.227.128.0/18
35.230.0.0/17
35.233.128.0/17
35.242.48.0/21
35.243.32.0/21
35.247.0.0/17
104.196.224.0/19
104.198.0.0/20
104.198.96.0/20
104.199.112.0/20
sing ip 104.196.232.237 from host discord-timed-message-production.up.railway.app

found 104.196.232.237 in cidr range 104.196.224.0/19 with region us-west1

all 27 cidr ranges for us-west1

34.19.0.0/17
34.82.0.0/15
34.105.0.0/17
34.118.192.0/21
34.127.0.0/17
34.145.0.0/17
34.157.112.0/21
34.157.240.0/21
34.168.0.0/15
35.185.192.0/18
35.197.0.0/17
35.199.144.0/20
35.199.160.0/19
35.203.128.0/18
35.212.128.0/17
35.220.48.0/21
35.227.128.0/18
35.230.0.0/17
35.233.128.0/17
35.242.48.0/21
35.243.32.0/21
35.247.0.0/17
104.196.224.0/19
104.198.0.0/20
104.198.96.0/20
104.199.112.0/20
what is the initial 104.196.232.237? is that not the public ip of the server?
Brody
Brody2y ago
the current IP, it could change at any time, don't use it
Gaura
GauraOP2y ago
ah ok
Brody
Brody2y ago
use the 27 cidr ranges
Gaura
GauraOP2y ago
what exactly r the 27 ip ranges? like i see them but what do they mean
Brody
Brody2y ago
services on railway don't have static ip's, and they're hosted on Google cloud, so any deployment you make could fall into any one of those 27 cidr ranges too much explaining, watch a YouTube video please
Gaura
GauraOP2y ago
ic so basically those ips are all the possible public ips that it could be
Brody
Brody2y ago
no, they're ranges it's a CIDR range
Gaura
GauraOP2y ago
alr im going to do some googling i thouht a cidr range is range of ips
jackson
jackson2y ago
think if you tally them up it will be approximately a few million unique IPs
Brody
Brody2y ago
27 ranges, but there's hundreds of possible ips, that's why cidr ranges are provided
Gaura
GauraOP2y ago
dang
Brody
Brody2y ago
okay yeah Jackson is definitely closer
Gaura
GauraOP2y ago
ok makes sense buy doesn't this mean that someone who's has one of those ips can access my service🧐 ?
Brody
Brody2y ago
um you have a public domain now discord-timed-message-production.up.railway.app
Gaura
GauraOP2y ago
yes
Brody
Brody2y ago
so yes people can access
Gaura
GauraOP2y ago
sorry meant anyone with those ips can access my db
jackson
jackson2y ago
all ips on the internet are usually scraped and botted, i wouldn't rely on not having a domain for security via obscurity
Brody
Brody2y ago
no, there would be a username and password
Gaura
GauraOP2y ago
but why does the db ask for an ip in the first place then?
Brody
Brody2y ago
ask the database host that
jackson
jackson2y ago
that's something with your db, they want to whitelist a certain IP or range of IPs to allow communication from can't spam a database with password attempts if you can't connect to it, is the idea
Gaura
GauraOP2y ago
ahh that makes sense ok cool ty guys railway discord's always v helpful!
jackson
jackson2y ago
🙏 brody is on top
Brody
Brody2y ago
lookup rewrite coming soon™️
Gaura
GauraOP2y ago
also smth interesting, i just counted the number of ranges it gives and it's 26, not 27 counted multiple times
Brody
Brody2y ago
lmfao
Brody
Brody2y ago
Brody
Brody2y ago
you right thank you very much my bad
Want results from more Discord servers?
Add your server