I am trying to view a live stream from the raspberry pi remotely. I am using motion software to record and stream the video. I am able to view the video locally. I am trying to view it remotely by following some tutorials on the net regarding using reverse ssh tunnels. These are the steps I am using below to view the stream:
Note: I have rented a server with static IP on aws and referring to the same below.
I have a USB camera connected and motion software running and wvdial running (3g dongle).
From the PI's terminal, typed the following :
ifconfig ppp0 Link encap:Point-to-Point Protocol inet addr:100.106.202.59 P-t-P:10.64.64.64 Mask:255.255.255.255 UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1500 Metric:1 RX packets:212 errors:0 dropped:0 overruns:0 frame:0 TX packets:224 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:3 RX bytes:9585 (9.3 KiB) TX bytes:11292 (11.0 KiB)
Then typed in:
sudo autossh -M 65500 -o ServerAliveInterval=20 -L 16090:100.106.202.59:8081 -R 2222:localhost:22 user@server
The pi was now logged into my server.
Next, from the server (logged in via putty) I typed in:
ssh -p 2222 email@example.com
And I was able to login to the pi.
Now, I opened up a browser on my windows laptop connected to the internet (different network) and typed in
And nothing showed up in the browser. Please let me know where I am going wrong or if there is some alternate method to do this ?