# Using Nextcloud

Nextcloud is a suite of client-server software for creating and using file hosting services.  Nextcloud is functionally similar to Dropbox, Office 365 or Google Drive when used with its integrated office suite solutions Collabora Online or OnlyOffice. It can be hosted in the cloud or on-premise.

### 1. Create the antlet

Create a new antlet based on the `Nextcloud` template. If you don't know how to create antlets yet, please check out [this article](https://docs.antsle.com/antlets/create-and-manage-antlet).

### 2. Set up access

To make sure your antlet and the site running on it is reachable, you will need to configure access. We recommend three different ways to do it. Choose the one that suits your needs best.

{% tabs %}
{% tab title="Using a bridged NIC" %}
Configure a bridged network interface, to expose your antlet to your local network. By doing this, your antlet gets another IP address in the same network that your edgeLinux server is in (in addition to the 10.1.1.X address.) This method gives you full access to the antlet from your local network. You can find detailed instructions on how to configure a bridged NIC [here](https://docs.antsle.com/networking/bridge#configure-virtual-nic).

Add a configuration file for the bridged NIC using these commands:

Create file for the bridged NIC:  &#x20;

&#x20;   `nano /etc/network/interfaces.d/eth1`

Add the following contents:&#x20;

&#x20;   `auto eth1`\
`iface eth1 inet dhcp`&#x20;

Type CTRL+O to write. Type CTRL+X to exit.

Bring up the bridged NIC:

&#x20;    `ifup eth1`
{% endtab %}

{% tab title="Using Port Forwarding" %}
In this scenario, we will specify a port that gets redirected to port 80 on the antlet.  In this example, we are using the same port number (80) for source and destination. &#x20;

![An example of port forward](https://2204297924-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LykQfPew0YJZLWKBUYz%2F-M_hI-neeJLSPzHFpWYs%2F-M_hI71bR8g7vSxBhMpW%2FScreenshot%202021-05-14%204.44.59%20PM.png?alt=media\&token=fccbbf85-f390-42cc-8713-add495d99f0d)

You can specify a different port if you'd like.  The source port should not be 3000 since this is used by antMan.

If you have multiple antlets running web servers listening on the same port, then you must create port forward rules with different source port numbers. &#x20;

You can find detailed instructions on how to setup port forwarding [here](https://docs.antsle.com/networking/port-forwarding).
{% endtab %}
{% endtabs %}

### 3. Connect to Nextcloud

If you used Bridged Networking above, then use this address in your browser to access Nextcloud:

&#x20; `http://bridge-nic-ip/nextcloud`

Where `bridge-nic-ip` is the private IP Address of your antlet that's on your network.

If you used Port Forwarding above, then use this address in your browser to access Nextcloud:

&#x20;   `http://myantsle.local/nextcloud`\
`http://antsle-private-ip/nextcloud`

Where `myantsle` is the host name of your antsle and `antsle-private-ip` is the private IP address of your antsle.

### 4. Logging into Nextcloud

Use the following default credentials for Nextcloud:

Username:  `root`  \
Password:  `antsle`

For using Nextcloud, you can refer to their documentation [here](https://docs.nextcloud.com/).
