How to connect your device from anywhere?
Ever wished you could access your IoT Device when you're on the road? Perhaps you've set up a home security camera, you're running a private Minecraft server, or you're using your Pi for some crazy hacked together internet appliance of your own making. Whatever your reason, it's easy than you think to access that IoT Device remotely. Here's how.
To access an IoT Device(or any home computer for that matter) from outside your home network, you'd usually need to jump through a lot of hoops, get an IP address, and tweak a few settings on your home router. If you just need to control a few simple things on your IoT Device, that's overkill. Remote-IoT provides one method that skips all of that.
Remote-IoT makes it easy to access your IoT Device from anywhere using a cloud connection. There are no dedicated VPN/firewall hardware required. As long as your device connects internet, you can fully control of your device including monitoring CPU, Memory and Network usage, performing any actions and running batch jobs on devices.
Secure Remote connection
Remote-IoT uses a secure AWS IoT cloud platform to connect to networked devices from anywhere. Remote-IoT provides a secure mechanism for encrypting and encapsulating private network traffic and moving it through an intermediate network. Data is encrypted for confidentiality, and packets that might be intercepted on the shared. Data is also encapsulated, or wrapped, with an IP header containing routing information.
Remote-IoT helps enable users working at home, on the road, or at a branch office to connect in a secure fashion to a remote iot device via the Internet. From the users perspective, the Remote-IoT is a point-to-point connection between the user's computer and an IoT Device. The nature of the intermediate network, the Internet, is irrelevant to the user because it appears as if the data is being sent over a dedicated private link.
Tunneling is a network technology that enables the encapsulation of one type of protocol packet within the datagram of a different protocol. For example, Windows VPN connections can use Point-to-Point Tunneling Protocol (PPTP) packets to encapsulate and send private network traffic, such as TCP/IP traffic over a public network such as the Internet.
The Remote-IoT tunnel is similar to PPTP. Both of the tunnel endpoints must agree to the tunnel and must negotiate configuration variables, such as address assignment, encryption, or compression parameters. In most cases, data transferred across the tunnel is sent using a datagram-based protocol. The Remote-IoT tunnel management protocol is used as the mechanism to create, maintain, and terminate the tunnel.
After the tunnel is established, data can be sent. The tunnel client or server uses a tunnel data transfer protocol to prepare the data for transfer. For example, when the tunnel client sends a payload to the tunnel server, the tunnel client first appends a tunnel data transfer protocol header to the payload. The client then sends the resulting encapsulated payload across the network, which routes it to the tunnel server. The tunnel server accepts the packets, removes the tunnel data transfer protocol header, and forwards the payload to the target network. Information sent between the tunnel server and the tunnel client behaves similarly.
Install and set up
Please sign up with the page.
Type the following command to download the Remote-IoT service into your device.
curl -s -L https://remote-iot.com/install/remote-iot-install.sh | sudo -s bash
Type the following command to register Remote-IoT service in your device.
sudo /etc/remote-iot/services/setup.sh "your_login_email" "your_password" "device_name"
For batch deployment in multi devices, please add the auto-deploy file with the following command and copy the SD card. The Remote-IoT service is automatically registered when the device boots up.
echo -e 'login_email=your_login_email password=your_password device_name=device_name' > /etc/remote-iot/auto-deploy
Disable the monitor data
If you want to save data usage in these mobile devices, you may disable the monitor data with the following command.
curl -s -L https://remote-iot.com/install/disablestat.sh | sudo -s bash
Type the following command to add upgrade script into the crontab job.
echo "0 2 * * * curl -s -L https://remote-iot.com/install/upgrade.sh | sudo -s bash" | crontab
Type the following command to remove the Remote-IoT service from your device.
curl -s -L https://remote-iot.com/install/uninstall.sh | sudo -s bash
With the Remote-Iot service, you may manage thousands of devices at the same time including monitoring CPU, Memory and Network usage, performing any actions and running batch jobs on devices.
When click the device, the monitoring CPU, Memory and Network usage show in the below panel.
R-click the device, select the 'Connect' command in the context context and input the TCP port which you want to connect.
Copy and paste the Host Name and Port into your client tools.
You may run these batch jobs on thousands of devices at the same time. Please click the 'New Job' button in the 'Batch Jobs' page.
Select these devices and specify the 'Execute Time' and the command or script file.
You may upload a file into thousands of devices at the same time. Please click the 'Upload' button in the 'File Upload' page.
Specify the upload target folder and the 'Execute Time' and click the 'Upload File' button.
Group and User
Users and groups are used on Remote-Iot for access control. Device and users may be grouped together into a "Group". Users can only access these devices under their group.
Click the "Add" button in the Groups page.
Add a user and assign the user to a Group. Click the "Add" button in the "Users" page. If users don't assign to a group, they can access all devices.
Assign a device to a Group
The administrator can assign a device to a Group. R-click the device in the device page and select the "Change Group" command.