0

I am interested in setting up a node-red server locally on a headless RPi. I expect the raspberry to host a local wifi network with the node-red server running on a static IP. I want to then access the node-red server from my laptop which is connected to the local wifi network hosted by the RPi. The raspberry pi is not connected to the internet, its meant to be hosting a local network.

I tried the following,

  1. I made a fresh installation of Raspbian Lite and created the ssh and wpa_supplicant.conf files. In the wpa_supplicant, I added the ssid and password of my wifi which is connected to internet.(This is required to download and setup the packages onto the Pi)
  2. Now I followed these instructions towards setting up an access point using RPi upto Step 6
  3. I started the hostapd and dnsmasq services and commented out the stuff I had added in the wpa_supplicant.conf in the /etc/wpa_supplicant/.
  4. sudo reboot

Now, I am able to connect to the ssid hosted by the RPi, but when I try to ssh it shows me "ssh: connect to host 192.168.0.1 port 22: Network is unreachable". (I have set the static ip on RPi wlan0 to 192.168.0.1 and given ip's from 0.2 to 0.30). On pinging this IP, I get "Request timeout for icmp_seq 1"

Could you please help me out here

Some_Guy
  • 3
  • 2

1 Answers1

2

As told in a comment you have an internet WiFi, means there is an internet router to that you can connect by WiFi. The internet router does not have a wired port or cannot be used. You want to have a stand alone access point using a Raspberry Pi. Devices connected to the RasPis access point should not have access to the internet but the RasPi itself should have it to install and update software. So you need a wireless client connection to your internet router (uplink) in addition to the wireless access point provided by the RasPi.

You have linked to a tutorial that uses a wired (not wireless) connection as uplink but that isn't what you need. The Raspberry Pi is able to create an access point simultaneous with a WiFi client uplink that can be used as a WiFi repeater. How to setup this you can look at an Access point as WiFi router/repeater, optional with bridge. Because you do not need a bridge, use only the first part of the tutorial. To avoid access of the local devices to the internet, just omit the option IPMasquerade=yes in the configuration file /etc/systemd/network/12-ap0.network as shown in the tutorial. The RasPi itself can use the uplink.

Ingo
  • 42,961
  • 20
  • 87
  • 207