🖥️Set a port live

It is quite easy to expose a port securely with holesail:

holesail --live PORT

Supported options:

OptionPurposeRequired / Optional

--live

Port to expose / set live

Required

--host

Listen to a custom host

Optional. Default is 127.0.0.1

--public

Use public connection mode

Optional. Default is private connection mode.

--connector

Use a custom connection string

Optional. Automatically generated by default, the length should be greater than 32 chars but can not be exactly 64 chars.

--force

Bypass custom connection string length limit

Optional. Default is false

Examples:

  1. Start a Holesail server on port 3000 with default host and private mode:

holesail --live 3000
  1. Start a Holesail server on port 3000 for sharing with third parties (public connection string):

holesail --live 3000 --public
  1. Start a Holesail server on port 3000 with a custom host and custom connection string:

holesail --live 3000 --host 192.168.1.1 --connector "my-custom-connection-string-that-I-will-not-share"
  1. Start a holesail server with custom connection string and its smaller than 32 characters:

holesail --live 4545 --connector "its-quite-small" --force

You can combine multiple options according to your needs. After executing any of the command above, you will get a QR code and a connection string along with some basic information.

In the next step of this guide, we will learn how to connect to a port that we just set live.

Last updated