Next.js Discord

Discord Forum

Nextjs testing with my smartphone over local network

Unanswered
Barbary Lion posted this in #help-forum
Open in Discord
Barbary LionOP
I want to open my development server while its compiling or running in my phone, when i put this script after accessing the ipv4 address from ipconfig like this one next dev -H [[ipadress]] its does not work, i just want to test the app in my smartphone, also I'm sharing the internet from my smartphone to the desktop through a simple hotspot

need help 😢

3 Replies

Asian black bear
It binds to 0.0.0.0 by default, so the port should be available on all interfaces of your machine
Are you sure the phone treats its hotspot as a LAN it can connect into?
Maybe your browser needs a "Connect to local devices" sort of permission on the phone?