Quickly host files on a local web server.
The default address of the local web server is localhost:8000
. If the default port is already used, a consecutive port number is used. Once the server is up, by default, the server address opens in a new tab of your default web browser.
You can quickly host files on a local web server by running Hosty in an appropriate directory.
- Download the latest version of Hosty for your operating system. See the Latest Hosty Release.
- Unzip Hosty.
- Double-click Hosty.
- If needed, accept every security prompt. See Accepting macOS Security Prompts or Accepting Windows Security Prompts.
Result: Your default web browser opens the local web server address in a new tab. - Fill in the Directory to host field with the directory that you want to host by doing one of the following:
Note: The default directory is your Downloads directory.- Edit the Directory to host field.
- Click Browse and select a directory.
- Optional: If you do not want to automatically open the web server address in your web browser, clear the Web browser preview check box.
- Click Start Server and accept any security prompts.
- If you want to host another directory, click Stop Server and repeat the procedure.
- To finish, close Hosty.
Resolve common issues with Hosty.
- Clear your web browser cache.
- Open the web server address in incognito (private) mode.