10.0.0.5
Are you testing it on a real device?
yes, I use an iPad Mini HD (WiFi only) and the target is a microcontroller with a WiFi module. That setup works fine with 2 android devices running essentially the same code as the B4I code I uploaded, talking to the target at the same time. Once I register the iPhone 6+ with Apple, I will try it too.
1. Try to set the Port variable to a random port (23442). Currently it is set to 0.
I believe I have tried that but I will try again later today. It may be that 8899 is privileged (below 10,000), so maybe Apple does not want me to use it. Error message says: "Can't assign requested address", but it may be the port number that's not good. I can reconfigure my target to use a higher port. That's on the list too.
2. Try to turn on airplane mode and enable wireless.
The iPad is WiFi only.
I do most of my development and testing with non-provisioned Android devices (because I have a bunch laying around) and aside from weird issues with WiFi and Android (when using a non-internet accessible hot spot, about which I have posted about earlier), this Android app is actually pretty solid with the target connected to my home network.
As an aside, originally the app would continuously try to communicate with the target using the broadcast address. Apparently the router did not like that and the connection would degrade rapidly after a minute or two, then it would work again if I waited a while. I am pretty sure that it was the router stopping to broadcast the packets (my target is connected via WiFi also). I now collect the target's IP address when I get the first response and from then on I use that address to send commands (unless it times out 5 times, then I restart broadcasting). This works perfectly. My Android devices have been communicating solidly with the target for several days now without reboot or reset of any kind.