To access a Vue project on a different machine on a non-LAN network, you will need to use a service like ngrok to create a secure tunnel to your local machine. Here’s a brief overview of how to do this:
Download and install ngrok on your local machine.
Start ngrok and specify the port that your Vue project is running on. For example, if your project is running on port 8080, you would run the following command: ngrok http 8080
This will create a secure tunnel to your local machine, and ngrok will provide you with a public URL that you can use to access your Vue project from another machine.
On the other machine, open a web browser and enter the public URL provided by ngrok. This will allow you to access your Vue project from that machine.
Keep in mind that the public URL provided by ngrok will only be active for a limited time, so you will need to repeat these steps every time you want to access your Vue project from a different machine.