Network analogy for vite in nextjs
Answered
Bull Arab posted this in #help-forum
Bull ArabOP
would be nice if this could be a feature in nextjs
this feature allows all the devices to get the localhost in others devices, with the same wifi.
this feature allows all the devices to get the localhost in others devices, with the same wifi.
Answered by joulev
Yeah things still work the same way, just that the ip address is not printed to the terminal like Vite
16 Replies
@Bull Arab would be nice if this could be a feature in nextjs
this feature allows all the devices to get the localhost in others devices, with the same wifi.
It’s already possible, just not printed to the terminal.
All devices in the same network can access the app at <ip address>:3000
All devices in the same network can access the app at <ip address>:3000
Bull ArabOP
hey can you say little more? im noob
oh ok got it
like you gotta put the ip in the device with port number
got it
Yeah things still work the same way, just that the ip address is not printed to the terminal like Vite
Answer
So in your case, simply go to http://192.168.1.34:3000
It being printed to the terminal would be a nice quality of life feature yeah, though not implemented yet
Bull ArabOP
did i leak my ip 💀
That’s just the local ip, it’s not that important
Bull ArabOP
yeah
@joulev It being printed to the terminal would be a nice quality of life feature yeah, though not implemented yet
Bull ArabOP
that would really be a good feature
hey @joulev
can you do me a favour
can you check up my website
If it’s a nextjs app just post it in #nextjs-showcase, others will come and have a look