How to Install Inlets on Ubuntu Server Latest

Inlets is a reverse proxy and tunneling tool that helps you expose local services to the internet. In this tutorial, we will guide you through the installation of Inlets on an Ubuntu Server Latest.

Prerequisites

Before you start, you need to have the following:

Step 1: Install Inlets

  1. Start by logging in to your server as a root user.

  2. Use the curl command to download the Inlets binary from the official website.

    $ curl -sLS https://inlets.dev/get | sh
    

    This will create a new directory called inlets in your current working directory and download the latest version of the Inlets binary to this directory.

  3. Move the Inlets binary to the /usr/local/bin directory so that it can be accessed by all users.

    $ sudo mv inlets /usr/local/bin
    

Step 2: Create a Systemd Service for Inlets

  1. Create a new systemd unit file for Inlets.

    $ sudo nano /etc/systemd/system/inlets.service
    
  2. Insert the following contents into the unit file.

    [Unit]
    Description=Inlets server
    After=network.target
    
    [Service]
    User=root
    ExecStart=/usr/local/bin/inlets server --auto-tls --port=80 --token=YOUR_TOKEN --upstream=http://localhost:8080
    Restart=always
    
    [Install]
    WantedBy=multi-user.target
    
    • Replace YOUR_TOKEN with a random string that will act as your authentication token.
    • Replace http://localhost:8080 with the address and port of the service you want to expose.
  3. Save and close the file.

  4. Reload the systemd daemon.

    $ sudo systemctl daemon-reload
    
  5. Enable and start the Inlets service.

    $ sudo systemctl enable inlets.service
    $ sudo systemctl start inlets.service
    
  6. Verify that the service is running without errors.

    $ sudo systemctl status inlets.service
    

Step 3: Expose Your Local Service to the Internet

  1. Install the Inlets client on your local machine.

    You can find the client installation instructions for your operating system here (https://docs.inlets.dev/#/tools/inlets-clients).

  2. Start the Inlets client and connect it to your server.

    $ inlets client connect --url wss://YOUR_DOMAIN:443 --token YOUR_TOKEN
    
    • Replace YOUR_DOMAIN with your server's domain name.
    • Replace YOUR_TOKEN with the authentication token you used in the systemd unit file.
  3. Verify that your local service is accessible over the internet by visiting your server's domain name.

Congratulations! You have successfully installed Inlets on Ubuntu Server Latest and exposed your local service to the internet using Inlets.

If you want to self-host in an easy, hands free way, need an external IP address, or simply want your data in your own hands, give IPv6.rs a try!

Alternatively, for the best virtual desktop, try Shells!