raspberry pi static ip vs discovery?

80 Views Asked by At

I have a headless raspberrypi that is configurable through a webserver running on it. In order to access it I need to allow users to access it via a network. The prospected users are not very tech savy and it should therefore be with as little manual configuration as possible.

Two options that I can think of:

  1. The pi is an access point with a static ip (e.g. ssid: pi , ip: 192.168.3.14) The user connects to the wifi and configures the pi to use the users home network. He then connects to his home network and keeps using the same static ip.

Problem: What if there are any ip conflicts between the pi and the home network infrastructure?

  1. The pi uses a dynamic ip and the user downloads a cordova app that scans the network to find the pi. Once found, the app just loads the page from the ip address webserver into a webview.

Problem: How can I discover the pi from within a cordova app?

I would prefer option 1 since it does not require the user do download an app. However I am concerned about ip conflicts and therefore think that only option 2 would work. How do other manufacturers work this out?

0

There are 0 best solutions below