ipv6
simkeeper
FREEOP

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 ?

$10 Bounty

13 Replies

Railway
BOT

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!


iiiixi
HOBBY

5 months ago

Go to project setting and scroll down to see the "Private Networking" section


iiiixi
HOBBY

5 months ago

Under Network settings


iiiixi

Go to project setting and scroll down to see the "Private Networking" section

simkeeper
FREEOP

5 months ago

Actually i cant find the IPv6 there.


simkeeper
FREEOP

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}); });

uxuz
MODERATOR

5 months ago

Hey, according to the docs, your shown snippet is the correct way to listen on IPv4 and IPv6 for express.


eetezadi
HOBBY

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.

simkeeper
FREEOP

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 ?

uxuz
MODERATOR

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.

simkeeper
FREEOP

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

uxuz
MODERATOR

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.


simkeeper
FREEOP

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 ?

uxuz
MODERATOR

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.


Loading...