I'm curious as to what makes the iPhone automatically connect to WiFi in some applications. I am writing an app that uses some custom socket wrappers I wrote, and it never seems to "force" the WiFi to come up. This means after a while after the WiFi turns off, my Bonjour stuff stops working because I'm not on the same subnet anymore. On the other hand, every time I open up my mail or Safari, WiFi pops right up. Any clue as to what I have to do force WiFi to connect (if available) when my sockets try to connect? At the very least get it to pop up the "Wifi Available, choose a network" popup.