If you have a Windows Mobile device that supports Wi-Fi and a Wi-Fi enabled computer or wireless router, you can debug an application without a physical connection. Install the Java ME runtime on the device as described in CLDC Emulator Installation for a Device Running Windows Mobile.
Note, multiple phones can be connected simultaneously.
There is no difference between plugging it into Wi-Fi enabled router and starting an ad-hoc network on the computer.
This can be different for different vendors and models, so check the documentation shipped with your device. A good point to start your search might be START > Settings > Connections > WLAN Settings > Connection Status.
Windowsdevice-address.exe add ip device-ip
Mac OSinstalldir/Contents/Resources/bin/device-address add ip device-ip
If you use a wireless router you can probably configure its DHCP server to always assign the same IP address to your device. If you can, you don’t need to run the device-address command every time because your device will be detected and added to the wireless network.
Mac OSinstalldir/Contents/Resources/bin/emulator -Xquery
Xquery returns the device name. You can also start the SDK user interface and look for the new device in the Device Selector panel.
The device should work like any other device or emulator. From the /bin directory, try these commands to install a MIDlet on the device:
Windowsemulator.exe -Xdescriptor:C:\Java_ME_platform_SDK_3.0\apps\Games\dist\Games.jad -Xdevice:device-name-from-Xquery
Mac OSemulator -Xdescriptor:../apps/Games/dist/Games.jad -Xdevice:device-name-from-Xquery