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.
- Open a shell on your device, or type
$ cd ~
- Create a yalertunnel directory
$ mkdir yalertunnel
$ cd yalertunnel
- Get the yalertunnel source code from
https://github.com/yaler/YalerTunnel2
- Make sure libssl or the equivalent on your platform is installed
- Build yalertunnel with
$ make
- 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.
- 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
- 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.
- 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
- 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.
- Get the example source code from
https://github.com/yaler/YalerContrib
- Open one of the language folders and follow the README.txt to build and run TimeService on your device
- Done. Now, see how to access your device from a Web browser or from Curl (and resolve errors).
This work by Yaler GmbH is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.