4

Wondering if it is possible to run an http server on my iPhone (CocoaHTTTPServer) and then connect to the iPhone hotspot from an Android device. Find the IP address of the hotspot (somehow) and then communicate directly to the iPhone http server over the hotspot connection.

Or to put it another way: Is there anyway to communicate (app to app) from Android to iPhone without any other hardware/networks involved? Note: No Bluetooth BLE on Android device.

FYI: ios7 and Android 4.0.4

Charles
  • 50,943
  • 13
  • 104
  • 142
Fraggle
  • 8,607
  • 7
  • 54
  • 86
  • mDNS / zeroconf / "Bonjour"? – Charles Nov 27 '13 at 01:21
  • @Charles, thanks, but have you ever tried this? Seems crazy that in 2013 we can't get Android an iPhone to communicate directly. – Fraggle Nov 27 '13 at 12:52
  • 1
    Ok, got something working. Running CocoaHTTPServer on iPhone (iPhoneHTTPServer sample app with setPort 12345), and then connecting to iPhone hotspot on Android and using android browser to go to 172.20.10.1:12345 retrieves the web page from the iphone. Sadly though, Jmdns on Android does not detect the service and therefore I have no idea if that IP address (172.20.10.1) will always be used by the hotspot or not. Seems to be the default though. – Fraggle Nov 28 '13 at 16:06
  • Also I don't really know for sure if I'm completely bypassing cell towers, but I suspect so. Android has cell data off, iPhone needs it on otherwise hotspot does not stay on. iPhone wi-fi is not connected to anything. – Fraggle Nov 28 '13 at 16:34
  • Unfortunately I'm neither an iOS nor Android dev, so I probably won't be any additional help here... – Charles Nov 28 '13 at 17:38

0 Answers0