Sending an HTTP request while not logged into WiFi


#1

Hi, I am trying to make functionality in my app to log into a WiFi network without having to type in the username and password every time. The problem I’m running into is when I send the post request to ‘http://2.2.2.2/login.html’ while I’m not signed into WiFi it attempts to send it using the cell network and of course it times about because it can’t access 2.2.2.2 on the cell network. Is there a way to send a request using WiFi?