😙Overview
Last updated
Last updated
Holesail can be segregated into mainly two parts, one is the server and other the client. When you set a port live (expose a port), we call it a holesail server, and when you connect to a holesail server, we call it a holesail client.
Holesail npm version and the Holesail executable for terminal supports both holesail client and server. That means you can use the terminal version to set ports live and connect to other people.
We also have Holesail Go apps for Mac, iOS and Windows which support only connecting and you can not set a port live using them.
Let's assume we have a react website running on localhost:4545, then to expose this port we will do:
Now, on a different computer (or even same) copy the connection string you got from the previous step and run:
You can also scan the QR code using Holesail Go app on your phone and Mac to connect.
You are now connected, and the port from device 1 is available on device 2. You can now access the running application on the provided URL after "Access application on". Which is 127.0.0.1:8989 in this case.
The port and host on second device are irrelevant of the port and host on device one. More about setting a custom port and host in the next module.