R
Railway13mo ago
Sergetec

Find server ip/domain and port

I have a project consisting of a Discord bot and I'm trying to make a webhook for voting rewards. The website I am doing these vote rewards requires me to enter a domain/server IP along with the port (in order to make a webhook URL). I've spent the last 30 minutes trying to find these things, but I just can't find them. So my question is, how can I find out what the ip/domain server along with the port?
11 Replies
Percy
Percy13mo ago
Project ID: N/A
Fragly
Fragly13mo ago
your host needs to be 0.0.0.0 and your port needs to be the PORT service variable you can ready more here: https://docs.railway.app/deploy/exposing-your-app dammit
Brody
Brody13mo ago
not quite
Fragly
Fragly13mo ago
Brody
Brody13mo ago
it might still be applicable, just not right this instant the deployments use dynamic ips, you don't want to use an ip. instead use a domain, you can get a domain for your app by going into its settings and clicking generate
Sergetec
SergetecOP13mo ago
ok, got that, but then the port?
Brody
Brody13mo ago
not needed you can currently only access http based services over https and port 443, but you will use the https scheme, therefore the port 443 is implied
Sergetec
SergetecOP13mo ago
ok, thx for this
Brody
Brody13mo ago
you should try visiting the domain you got in a web browser to see if your app is listening properly before you try it with a webhook service
Sergetec
SergetecOP13mo ago
Thank you, now it works perfectly with port 443 and a generated domain, I didn't know about all of these before
Brody
Brody13mo ago
no problem!
Want results from more Discord servers?
Add your server