I have a PC and device (Windows CE ). PC is connected to WiFi router by wire,and device is connected to WiFi router (wireless connection). Both devices are connected to the LAN. What I want is to send data from device to PC. Device connects to WiFi router successfully. There is an FTP server working on PC. So device must connect to that PC's IP address. InternetOpen and InternetConnect are used to do it. But what happens is that when device is connected to Ethernet network - it works fine, but when disconnected - it fails to connect. I want it to always send data throug WiFi router. How to do it? It seems that even if it is connected to Wifi network it fails to send through it.