WiFi Protected Setup (WPS) code in iOS - ios

I was wondering if anyone know if it is possible to create an application to connect your iPhone/iPad to a router via WiFi Protected Setup (WPS).
I know applications in Windows and Linux that can connect using this protocol, so the question is if it is possible to code an application in iOS, or, at least, port a linux app to iOS.

No, you can't access WiFi settings from any App for security reasons.
See for more info: https://apple.stackexchange.com/questions/81994/is-it-possible-to-connect-an-iphone-ipad-via-wifi-protected-setup-wps

Related

How do I create a host iPhone with a static IP address for an iOS app?

I am trying to create an iOS app that uses a master iPhone as the host server for other iPhones. How do I do this using a programmatically set static IP address for the host iPhone. Essentially, I am trying to relay data over the internet from multiple iPhones to a singular iPhone without a standalone server. Looking for a solution for either Xamarin or Tizen mobile SDK, whichever works. Jailbreaking is not an option.
Note: I am a complete beginner at iOS development.
Thanks in advance!

Ios filesharing without iTunes or an internet connection

I am working on developing an enterprise application for ios 7 that needs to work offline and then sync with a desktop client (that I also need to write) for data transfer.
My company does not allow wireless or cell data in this area, and would strongly prefer to not use iTunes either.
The question is, how do you transfer data from an iPad over the usb cable to a custom windows program, without iTunes.
The simplest answer would be: iExplorer (http://www.macroplant.com/iexplorer/) plus some kind of a script to automate the data sync.
Otherwise, you can use the ExternalAccessory framework to communicate with the desktop via a USB tether. This would necessitate a desktop client running simultaneously to communicate with the device.
peertalk (https://github.com/rsms/peertalk) does what you want, however the computer side library is only for mac os. Maybe you can port the protocol to windows by looking at that (the license is BSD)
Edit: this guy managed to have it run under linux. It sits on usbmuxd, which also has a windows port, so it shouldn't be impossible.

iOS app-level communication over USB

Is it possible to to communicate between MAC/Windows programs and an application on iOS through USB?
Requirements:
No jailbreak required
App store approval
I looked into USBMuxConnectByPort and it requires SSH/Jailbreak.
Is there any other option?
It is possible.
'USBMuxConnectByPort' is the function from the private framework MobileDevice.framework
See usage example here: https://github.com/smirn0v/imux
imux – application I wrote that ties local tcp port on your mac with tcp port on your ipad/iphone. So connection to 127.0.0.1:someport will actually connect you to your iPhone/iPad via usb.

Communicate between iPhone and macbook laptop

In an effort to learn more about networking I'd like to do an exercise: write some code on an iPhone and macbook laptop that allows the devices to communicate over HTTP.
How would I set this up in general? I could write a very simple web server as illustrated in Beej's Guide. Then run this and make requests from the phone. Assume the two devices will be on the same wifi network.
In this book you can find an example of how to make a network to connect a Mac OS X app with an iOS app using Bonjour.
http://my.safaribooksonline.com/book/programming/mobile/9780132757058/bonjour-and-web-servers/ch28
Hope this helps you.
Using HTTP between two apps is very inefficient. Use NSNetService and raw sockets.
NSNetService Docs
There is an example project that shows how to setup the service for publishing, connect 2 services, and consume data from a socket connection.

Unable to make direct TCP connections on blackberry application

In my blackberry application I'm establishing network connection by appending ;deviceSide=true in the url. It is working fine on simulator but its not working on device. I've correct APN settings as other third party apps are running fine.
Please let me know the possible reason for this issue!!!
Its not necessary that your app always connect via direct TCP.
For taking care all types of networks available in blackberry for your app refer this article.
How to programmatically connect to the internet in blackberry
Network Diagnostic Tool
download this network diagnostic tool developed by RIM and check weather direct TCP is working or not in your mobile.

Resources