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.
Before you start, you need to have the following:
Start by logging in to your server as a root
user.
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.
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
Create a new systemd unit file for Inlets.
$ sudo nano /etc/systemd/system/inlets.service
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
YOUR_TOKEN
with a random string that will act as your authentication token.http://localhost:8080
with the address and port of the service you want to expose.Save and close the file.
Reload the systemd daemon.
$ sudo systemctl daemon-reload
Enable and start the Inlets service.
$ sudo systemctl enable inlets.service
$ sudo systemctl start inlets.service
Verify that the service is running without errors.
$ sudo systemctl status inlets.service
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).
Start the Inlets client and connect it to your server.
$ inlets client connect --url wss://YOUR_DOMAIN:443 --token YOUR_TOKEN
YOUR_DOMAIN
with your server's domain name.YOUR_TOKEN
with the authentication token you used in the systemd unit file.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!