Since Raspberry Pi acts as our client, we will write our client code in Raspberry Pi itself. Let's install Node.js in our Raspberry Pi. At the end, we will have Node.js up and running. Here, we will SSH into Pi using PuTTY:
- Open the PuTTY terminal on laptop/desktop.
- Include the IP address, which your router has provided to your Pi, as the Host Name (IP address) and click on Open, as shown in Figure 3.4:
- If you are connecting for the first time, a security warning will appear. Just click Yes as shown in Figure 3.5, as you are connecting to your own Pi and not a public computer that may harm your system: