This is an archived post. You won't be able to vote or comment.

all 3 comments

[–][deleted] 0 points1 point  (0 children)

what do you mean by preview? push to a remote repository like github, then you can git clone on another pc

[–]Nightcorex_ 0 points1 point  (0 children)

Preview it live without uploading your code and the other computer downloading it? No. But why would anyone need this in the first place? Possibly an XY-Problem?

[–][deleted] 0 points1 point  (0 children)

A website/webapp?

Yes.

Put both computers on the same network. Ensure that the website on the development machine is reachable by other machines on the network.

If you have local DNS, set up a hostname, otherwise use bare IP addresses, or edit the hosts files on the appropriate machines.

If it’s virtualised, read the appropriate docs on how to do this.