Skip to main content


Expose http server on given port to the public


Syntax for this command changed between 1.0.0-beta.8 and 1.0.0-beta.10*

*(1.0.0-beta.9 is removed release)


Exposes http server running locally, or on locally available machine to the public via loophole tunnel.

To expose server running locally on port 3000 simply use loophole http 3000. To expose port running on some local host e.g. use loophole http <port>


loophole http <port> [host] [flags]


  -p, --basic-auth-password string   Basic authentication password to protect site with
-u, --basic-auth-username string Basic authentication username to protect site with
-h, --help help for http
--hostname string custom hostname you want to run service on
-i, --identity-file string private key path (default "$HOME/.loophole/.ssh/id_rsa")
--qr use if you want a QR version of your url to be shown

Options inherited from parent commands

  -v, --verbose   verbose output