Answer the question
In order to leave comments, you need to log in
How to open localhost on another computer on the same network?
I'm making a project in vue, working locally. I open on localhost localhost:3102 . It is required to test the project on a poppy, in an emulator. How can I open localhost on another PC? Computers are connected to the same wi-fi.
Answer the question
In order to leave comments, you need to log in
it all depends on your configuration. In general, it looks something like this:
• Find локальный ip адрес своей машины
out where you are developing. In the case of Windows - command line -> enter ipconfig --> watch ipv4
• Run the development server not on localhost but on the ip
address you find out. (Machine on which you are developing)
• On another device (your macbook), just enter instead of localhost ip
the address where you started the server
• Did not work? Go to the settings of your router and forward this one ipшник
(it's different on different routers. You may need to restart the router and reconnect to wi-fi)
• In extreme cases, you may need to turn off the Windows Firewall for the duration of the test
localhost is usually 127.0.0.1, so this port cannot be accessed via LAN IP, it is only available inside the machine.
Run not on localhost, but on the IP of the machine.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question