a year ago
how can i get my ipv6 for the app?
i think i read that
All IPv6 IPs on the private network are dynamic and change on every deployment.
even how can i see that ?
13 Replies
a year ago
Hey there! We've found the following might help you get unblocked faster:
- ๐ Private Networking
- ๐ Deploy a Rust Axum App
- ๐งต Is there a way to get IP address before deployment?
If you find the answer from one of these, please let us know by solving the thread!
iiiixi
Go to project setting and scroll down to see the "**Private Networking**" section
a year ago
Actually i cant find the IPv6 there.
a year ago
is this how i can do taht ?
const port = process.env.PORT || 3000; app.listen(port, "::", () => { console.logServer listening on [::]${port}); });
simkeeper
is this how i can do taht ? const port = process.env.PORT || 3000; app.listen(port, "::", () => { console.log`Server listening on [::]${port}`); });
a year ago
Hey, according to the docs, your shown snippet is the correct way to listen on IPv4 and IPv6 for express.
a year ago
you can check using "railway ssh" and then run "ps aux". Any AI will tell you if it listens on IP6.
uxuz
Hey, according to the [docs](https://docs.railway.com/guides/private-networking#node--express), your shown snippet is the correct way to listen on IPv4 and IPv6 for express.
a year ago
that code gave me only the port ??
i need the full IPv6 ... could u plz tell me how ?
Status changed to Open uxuz โข about 1 year ago
simkeeper
that code gave me only the port ?? i need the full IPv6 ... could u plz tell me how ?
a year ago
Hey, you already use :: in your code and it binds to IPv4 and IPv6.
uxuz
Hey, you already use `::` in your code and it binds to IPv4 and IPv6\.
a year ago
I am telling you that code print me the port only.not the full ip address
simkeeper
I am telling you that code print me the port only.not the full ip address
a year ago
Hey, you should reference your service using service variables and not hard code the IP address. You can see how this is done here https://docs.railway.com/guides/private-networking#using-reference-variables.
a year ago
Hi Now i could get my IPv6. we tried to whitelist this IP in the API service but still we cant communicate with the api. what is the problem ?
simkeeper
Hi Now i could get my IPv6\. we tried to whitelist this IP in the API service but still we cant communicate with the api. what is the problem ?
a year ago
Hey, could you please elaborate on how you are whitelisting the IPv6 address? A workaround would be to use a secret for authentication that only your API and the service that is using it should know.
