how to run a development server (tutorial)
Answered
piscopancer posted this in #help-forum
### Check your current IP by opening a console and typing a command
Stick your attention to IPv4 and copy this address.
### Open
🛑 Consider uppercase
# WOW. Now you are able to run a server and open it on your mobile
ipconfig
. You are going to get this output....
DNS-ÑÑƒÑ„Ñ„Ð¸ÐºÑ Ð¿Ð¾Ð´ÐºÐ»ÑŽÑ‡ÐµÐ½Ð¸Ñ . . . . . :
Локальный IPv6-Ð°Ð´Ñ€ÐµÑ ÐºÐ°Ð½Ð°Ð»Ð° . . . : fe80::332c:7c80:a974:8875%11
+ IPv4-адреÑ. . . . . . . . . . . . : 192.168.1.41
МаÑка подÑети . . . . . . . . . . : 255.255.255.0
ОÑновной шлюз. . . . . . . . . : 192.168.1.1
...
Stick your attention to IPv4 and copy this address.
### Open
package.json
and make a replacement "scripts": {
"dev": "next dev -H 192.168.1.41 -p 3000",
},
🛑 Consider uppercase
-H
and lowercase -p
. This is vital# WOW. Now you are able to run a server and open it on your mobile
1 Reply
done
Answer