# File Hosting Server

## Hosting Files

go-live will host any files and subdirectories of the directory it is executed in. This includes any other type of file other than .html files:

```
go-live --dir ~/share-directory
```

\
You can use this on a Rasberry Pi,  Media Device, or Datacenter system to perform very basic file hosting on a local network or via the internet or any device that has the ability to serve on a port.

{% hint style="info" %}
Make sure the port you are hosting on is open if connecting via the Internet. You may need sudo to run on Port 80
{% endhint %}

Users with a headless display can simply wget any files from the route.

Once the files are hosted they are accessible via the browser or via the browser. Use the local address if on the same subnet or remote address if downloading via the internet.

![Access from anywhere on the local network or Internet](/files/-MIGM_l22wFpaSJi9ZH1)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://antsankov.gitbook.io/go-live/usecases/file-hosting-server.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
