NEHotspotConfigurationManager. Is it possible to set "Manual" IP address and subnet mask programmatically

I use NEHotspotConfigurationManager and NEHotspotConfiguration API to connect to Wifi by SSID and Password. All works good, but I need to set a static IP address and mask too.
I couldn't find any public API that can do this.

Is it possible to do this programmatically or exists only one way, after connecting to WIfi in my Application, the user should manually open iOS network settings, and enter this data on the "configuration IPv4" screen?
Right, getting the IP of the machine you just connected to via NEHotspotConfigurationManager can be a bit tricky because you don't really know anything about this device other than the SSID and passphrase. One potential way to approach this would be to encode an IP inside a QR code that the iOS device could scan and decode from within it's app. I have used this technique and it seems to work well. The access point device would encode any information into the QR code and provide or display it as needed.

Matt Eaton
DTS Engineering, CoreOS
meaton3@apple.com
I don't need to take IP of the machine that I just connected to. I need to set my own static IP address and mask in a new network. Like you do in the iOS/Mac os network settings: you open "Configure ipv4" screen, change "Using DHCP" to "Manual" and enter "IPv4 address", "Subnet mask".
Ah, thank's for the clarification. There is no API to set these values programmatically. You will need to open an enhancement request for an API to do this. Please follow up with the Feedback ID of the enhancement request.


Matt Eaton
DTS Engineering, CoreOS
meaton3@apple.com
Thank you.

I need that as well, but for a wired ethernet interface. It‘s quite a burden to require the user to set a static IP and netmask before my app can talk to the device I need to talk to. Should I just file a feedback request via the reporter?

NEHotspotConfigurationManager. Is it possible to set "Manual" IP address and subnet mask programmatically
 
 
Q