5 months 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
5 months ago
Hey there! We've found the following might help you get unblocked faster:
If you find the answer from one of these, please let us know by solving the thread!
5 months ago
Go to project setting and scroll down to see the "Private Networking" section
iiiixi
Go to project setting and scroll down to see the "Private Networking" section
5 months ago
Actually i cant find the IPv6 there.
5 months 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.logServer listening on [::]${port}); });
5 months ago
Hey, according to the docs, your shown snippet is the correct way to listen on IPv4 and IPv6 for express.
5 months 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, your shown snippet is the correct way to listen on IPv4 and IPv6 for express.
5 months ago
that code gave me only the port ??
i need the full IPv6 ... could u plz tell me how ?
Status changed to Open uxuz • 5 months ago
simkeeper
that code gave me only the port ??i need the full IPv6 ... could u plz tell me how ?
5 months 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.
5 months 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
5 months 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.
5 months 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 ?
5 months 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.
