Proxying WebSockets on NodeJS running off Apache

Disclaimer: I’m not a WebServer Admin/Pro and only tinker with stuff found around, so please excuse my ignorance or wrong jargon used here.

I had this terrible problem where a NodeJS app running on port 3000 on an Apache Server would refuse to proxy the incoming Web Sockets to the Node App. After almost two weeks of battling it out (including Server upgrades and losing out the entire app :), we finally managed to get it running). I’ll start off with my setup and then come over to the solution. If you’d like to directly jump to the solution, please scroll down. Continue reading “Proxying WebSockets on NodeJS running off Apache”

Advertisements

Part 0: Getting started with AWS IoT and Arduino (+ESP8266)

[7/June/2017]: I came across this post: https://mongoose-os.com/blog/esp8266-remote-control-via-aws-iot/ I haven’t tried it yet. Pls let me know in the comments if this worked for you.

[31/July/2016]: I’m very Sorry. I couldn’t get the ESP8266 talk with the AWS IoT platform due to the ESP’s limited ability to support TLS 1.2 which is required by AWS IoT.

http://bbs.espressif.com/viewtopic.php?t=1639

If you’re comfortable using the ESP SDK, something exciting just came up: https://github.com/SuperHouse/esp-open-rtos/pull/173 –> an MQTT example with AWS IoT + ESP8266.

I’ll wait till someone builds a wrapper/library around it.

I’ve been thinking of using the Arduino MKR1000 instead with the AWS IoT. Let’s hope this get’s done quick 🙂


Pre.Scriptum: (Edit: 21, Dec, 2015)  Amazon released the AWS IoT suite of applications and services a while back and I now feel it’ll be more helpful if we base our tutorial on the AWS IoT platform. It’s a TODO for me and hopefully I’ll have something up and running.


I’ll be doing a series of posts on getting started with building IoT applications using an AWS EC2 Instance and an Arduino with ESP8266 WiFi Module. We’ll eventually delve into Raspberry Pi, MongoDB, Node.js, Dashboards etc as  the journey continues. Continue reading “Part 0: Getting started with AWS IoT and Arduino (+ESP8266)”

Sharing WiFi Internet connection with Raspberry Pi through LAN/Ethernet (Headless Mode)

Update 25th August, 2017: I haven’t tried this method yet on the recently released Raspbian Stretch version. However, one user has confirmed that the first method works on it. If it works for you, please let us know through the comments. Thanks.

Update 29th Dec, 2016: If you’re using the latest PIXEL Image, please make sure you enable the SSH Server by placing a a file named as ssh in the boot directory before trying any of the following methods. The SSH Server on boot has been disabled in the latest Raspbian image as a security measure. Read more about it here: https://www.raspberrypi.org/blog/a-security-update-for-raspbian-pixel/

Update 9th July, 2016: I’m inspired by this method https://www.raspberrypi.org/blog/programming-pi-zero-usb of SSHing into a Pi through the USB only and gonna tinker and see if we can get to also share Internet over to the Pi using only the USB. (No more messy LAN Cable 🙂 ). If you get it working, please share.

Update 10th July, 2016: I’m afraid, I won’t be able to get the above method running on a Pi 2/3 as it’s only supposed to work on a Pi Zero. If you have a Pi Zero and are interested in Sharing WiFi over USB, please check out http://blog.gbaman.info/?p=791#comment-136336

Updated 5th April, 2016 with Striner’s method

.

If this Tutorial helps you, please consider PayPaling me any positive integer at http://paypal.me/anwaarullah

This post will allow you to share WiFi Internet connection of the PC/Laptop with the Raspberry Pi which are connected to each other through a simple LAN/Ethernet cable connection at each end.

What you want to do:

  1. Share PC/Laptop’s WiFi Internet connection with Raspberry Pi through LAN/Ethernet connected to Raspberry Pi

Continue reading “Sharing WiFi Internet connection with Raspberry Pi through LAN/Ethernet (Headless Mode)”