Access your device from the Web

Make your device accessible from anywhere via the Yaler relay.

Prerequisites

Setting up your device requires a relay domain. Please sign up to get one.

Installing YalerTunnel

Follow these steps to install YalerTunnel on your device.

Need help with building or porting this code? Get in touch.

  1. Open a shell on your device, or type
    $ cd ~
  2. Create a yalertunnel directory
    $ mkdir yalertunnel
    $ cd yalertunnel
  3. Get the yalertunnel source code from
    https://bitbucket.org/yaler/yalertunnel2
  4. Make sure libssl or the equivalent on your platform is installed
  5. Build yalertunnel with
    $ ./configure && make
  6. Done. Now either enable Web access or SSH access.

Web access

Prerequisites

A Web server or service has been installed and is running on the device.

Enabling Web access

How to configure YalerTunnel on your device to make a local Web service accessible from anywhere.

  1. Run yalertunnel in server mode, using the port of the local Web service (default: 80), and your relay domain
    $ ./yalertunnel server 127.0.0.1:80 try.yaler.io:80 RELAY_DOMAIN
  2. Done. Now, see how to access your device from any Web browser or with Curl or from iOS or from Android (and resolve errors).


SSH access

Prerequisites

The SSH daemon sshd is running on the device.

Enabling SSH access

How to configure YalerTunnel on your device to allow SSH access from anywhere.

  1. Run yalertunnel in proxy mode, using the port of the local SSH service (default: 22), and your relay domain
    $ ./yalertunnel proxy 127.0.0.1:22 try.yaler.io:80 RELAY_DOMAIN
  2. Done. Now, see how to access your device with Putty or with SSH (for Linux, Mac OS X).


Alternative for non Linux devices

Trying a stand-alone example in C, C#, Java or Python

Follow these steps to download and run stand-alone Web service examples in different languages.

  1. Get the example source code from
    https://bitbucket.org/yaler/yalercontrib
  2. Open one of the language folders and follow the README.txt to build and run TimeService on your device
  3. Done. Now, see how to access your device from a Web browser or from Curl (and resolve errors).

Creative Commons License This work by Yaler GmbH is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.