G
G
Grione2020-11-18 10:13:18
macOS
Grione, 2020-11-18 10:13:18

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

3 answer(s)
V
Vadim, 2020-11-18
@Grione

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 ipaddress you find out. (Machine on which you are developing)
• On another device (your macbook), just enter instead of localhost ipthe 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

A
Andrey Barbolin, 2020-11-18
@dronmaxman

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.

A
Alexander, 2020-11-18
@StupidQuestion

Your IP is 192.168.1.5 The
IP of another 192.168.1.6
Doesn't work by IP in the browser?
192.168.1.5
http://192.168.1.5:80

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question