> For the complete documentation index, see [llms.txt](https://kb.rport.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://kb.rport.io/video-courses/install-on-prem.md).

# Install on Prem

### The video covers <a href="#the-video-covers" id="the-video-covers"></a>

In this video, I’ll show you how to install the rport server on a virtual machine that is behind network address translation.\
The goal of the installation is to make the web interface available securely over the Internet using HTTPS.\
In addition, all your remote machines will be able to connect to the RPort server from anywhere.\
The video covers the server installation and the necessary router changes.

### Commands used in this video <a href="#commands-used-in-this-video" id="commands-used-in-this-video"></a>

Install netcat on Ubuntu.

```
apt install netcat-openbsd
```

Start a simple TCP server on a given port.

```
nc -l <PORT>
```

Make a test connection to a host on a given port

```
Test-NetConnection -ComputerName <HOSTNAME> -Port <PORT>
```

Download the server installation script.

```
curl -o rportd-installer.sh
bash rportd-installer.sh -h
```

Download and import the RPort certificate authority.

```
iwr "https://<RPORT-SERVER-IP>:<PORT>/rport-ca.crt" -SkipCertificateCheck `
  -OutFile rport-ca.crt  
Import-Certificate -FilePath rport-ca.crt `
  -CertStoreLocation 'Cert:\CurrentUser\Root' -verbose
```

Find examples for Linux and macOS [here](https://kb.rport.io/install-the-rport-server/install-on-premises#manage-certificates).

{% embed url="<https://vimeo.com/804821046>" %}
Install the RPort server on premises
{% endembed %}
