khaled amir
khaled amir

Reputation: 21

How to open live server vscode in other devices

I am using live server vscode on my device but I want other devices to have access to the ip address for me with a password. So how i can do this?!

Upvotes: 0

Views: 8371

Answers (2)

Abhay Haldiya
Abhay Haldiya

Reputation: 1

  1. Access your PC's IPv4 address using "ipconfig/all" in the command prompt (cmd panel).
  2. Run Live Server on your PC.
  3. Open a browser on a second device connected to the same Wi-Fi network as your PC.
  4. In the second device's browser, type your PC's IP address followed by the Live Server port. For example, if your PC's IP address is 192.168.0.109 and the Live Server is running on port 5500, you would type "192.168.0.109:5500" in the browser.

If you encounter any issues, try disabling the firewall and make sure that both devices are connected to the same Wi-Fi network.

Upvotes: 0

Mustafa_Asaad
Mustafa_Asaad

Reputation: 106

  1. Get your PC's IP address
  2. Run Live Server
  3. Open 2nd device's browser
  4. Type your PC's IP address and the Live Server port, ex: 192.168.0.109:5500

If you are using windows and do everything correctly but it still doesn't work, you should disable the firewall or add a rule for this port

Upvotes: 7

Related Questions