NEHotspotConfiguration has two problems:
As far as I can see, the API doesn't allow me to intercept or override the DHCP configuration that gets sent from the WiFi access point, so how could I configure the router IP programmatically?
I don't know the SSID in advance. Usually those WiFi diagnostic adapters insert their (varying) serial number into the SSID, and – sometimes – the password.
I'm not sure I understand your second paragraph. Do you want to say that trying to access an internet resource via the WiFi link would tell the system that it has no WiFi connection? If so, that doesn't happen – at least not with URLSession, since I'm already doing that. I try to access resources, which – due to the WIFi link being used – all fail.
Topic:
App & System Services
SubTopic:
Networking
Tags: