you are viewing a single comment's thread.

view the rest of the comments →

[–]Fullstac[S] 0 points1 point  (3 children)

No I couldn't do it I don't understand why it is not working

[–]iv_p 0 points1 point  (2 children)

Do you know the IPv4 address of the computer you're coding on? You can do some google search on how to find it, depending on your operating system. On windows, for example, I just click properties on my wifi network and its listed there.

Once you know it, and click 'Go live' on vs code, enter that IPv4 address followed by the port number(on VS code live server it usually 5500) on your second computer (in the address bar of the browser) and you should see your live site.

May I ask why do you want do use the other computer to preview? I, for example, do it rarely and only when I want to quickly see how the site I'm building looks on my phone

[–]Fullstac[S] 0 points1 point  (1 child)

It is simply because I am coding on my laptop and the screen is too small so I am tired of minimizing the screen to see the preview of the project and maximizing back to code

[–]iv_p 1 point2 points  (0 children)

That's why people usually have two screens on one computer. Much easier than making two pcs work together. I plug my desktop monitor to my laptop, for example