0

I am developing an application on Rasberry Pi, by running a lamp server. I would basically want the app (Android/iOS) to connect to the local sever directly when on WiFi.

I am not able to figure out if there is a way to get this done?

Regards, Ayush

Sebyddd
  • 4,305
  • 2
  • 39
  • 43
Cool Techie
  • 756
  • 2
  • 18
  • 39
  • Take a look at this [post](http://stackoverflow.com/a/3122731/1532168). It explains how to listen for state changes of the wifi adapter in android. From there you could trigger some actions in your app. The same should be possible in iOS. – cgross Oct 19 '14 at 14:50
  • What do ou mean "connect directly"? Do you want to use a different server when not on wifi? – Paulw11 Oct 19 '14 at 20:00
  • Yes when not on wifi, I would probably connect via a cloud server to the local raspberry lamp server. – Cool Techie Oct 20 '14 at 07:08
  • @cgross is there a quick way to detect the IP address of the raspberry pi server. – Cool Techie Oct 20 '14 at 12:10
  • I would suggest you give it a static IP so you don't have to search for it in the network. – cgross Oct 20 '14 at 18:13

0 Answers0