# 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 %}


---

# 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://kb.rport.io/video-courses/install-on-prem.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.
