[Windows Mobile Development and Hacking General] TalynOne:
This script is included in the attached .zip file To use this script you must first download and install MortScript from here:

http://www.sto-helit.de/index.php?module=download&action=view&entry=65

or here:

http://www.pocketpcfreewares.com/en/index.php?soft=1448

This is an adaptation of Xiou's Share&KeepSharing script.

It turns off Wifi radio, starts hacked version of Internet Sharing app, connects and turns WiFi radio on. Once one valid connection has been made, reconnects if Internet Sharing enabled status status changes to disabled (ie. a disconnect occurs). Also, keeps device from going into standby mode, to prevent loss of WiFi connectivity.

It's heavily documented so it should be fairly easy to view, modify and understand by looking at it in a text editor.

Troubleshooting/Tips:

My connection seems flaky/slow, how can I fix it?

If you have Bluetooth radio is on, try turning it off. On some devices, such as the HTC Mogul, the antenna for the WiFi and Bluetooth devices are shared, and WiFi performance can be greatly degraded when both are on. I've personally experienced a situation where I've been connected to a regular WiFi network connection, and when transferring files, the transfer speed was terribly slow. Turning off Bluetooth greatly sped up the file transfers.

Don't place your mobile device too close to the device you're connecting to. If the devices are too close your connectivity could get flaky.

Upping the power level of the WiFi device may help (at the sacrifice of battery power drain). On the HTC Mogul this can be done by going to Start->Settings->"Connections" tab and selecting the "Wireless LAN" applet, then on the "Power Mode" tab, slide the Power Save Mode slider all the way to the left.

You stay connected via WiFi, but Internet Sharing gets disconnected every 10 minutes

Make sure you're using the 10 minute disconnect workaround documented above. Also, you can try the included Mortscript (Share&KeepSharingViaUSB.mscr), or better yet, use Chainfire's WMWifiRouter application.

Help, when I go back to the non hacked version of Internet Sharing to tether via USB, it no longer works!

For some reason the IP address of your virtual USB ethernet device gets blanked out sometimes, to fix this:

Go to Start->Settings->Connections Tab->Wi-Fi applet

On the Network Adapters tab, choose "Remote NDIS Host"

Set the IP to 192.168.0.2

Set the Subnet Mask to 255.255.255.0

This doesn't work, what else can I try?

Read the FAQ "My device is not in the list and/or I don't know what the device name for my WiFi device is, how do I find out?" to make sure that a hacked .dll exists for your device and is copied into the same folder as "intshrui.exe". If one doesn't exist you can request one be made by posting in this thread, with the WiFi identifier of your device (please provide the name of your device too). You can also create your own hacked .dll by reading the FAQ "How did you hack intshare.dll?".

Try Chainfire's applicaton, available at the top of the thread HERE

Try fluxist's methods HERE (try the non hacked .dll method first)

FAQ:

How is this different from fluxist's hack?:

It redirects USB instead of Bluetooth for sharing the Internet Connection, and works of an independent copy of intshrui.exe, so none of your original files/functionality gets effected. By redirecting the USB functionlity, instead of Bluetooth, you don't have to deal with the Bluetooth visibility prompt, and your Bluetooth radio doesn't get turned on by the Internet Sharing application. On some devices, such as the HTC Mogul, the antenna for the WiFi and Bluetooth devices are shared, and WiFi performance can be greatly degraded when both are on. I've personally experienced a situation where I've been connected to a regular WiFi network connection, and when transferring files, the transfer speed was terribly slow. Turning off Bluetooth greatly sped up the file transfers. Also the method allows for the 10 minute timeout elimination workaround described above. More information is located in the FAQ "How did you hack intshare.dll?".

Why would I want to share my phone's data connection over WiFi, as opposed to over Blueooth or USB?

There are many reasons, including:

With 3G technologies, such as EVDO, phone data speeds can easily exceed what Bluetooth supports (Bluetooth v1.2 - 1 Mbit/s, Bluetooth v2.0+EDR - 3 MBit/s). This is not counting the overhead taken by the protocol itself.

The ability to share with multiple clients. I tested with my laptop and a Dell Axim X50V connected to the Ad Hoc network, and both were able to use the shared connection on the Windows Mobile device at the same time just fine!

WiFi data communication can be encrypted with industry standard encryption, Bluetooth sharing is not.

WiFi range tends to be typically much longer than most Bluetooth devices.

You may want to share your data connection with a device that does not have Bluetooth PAN or USB Host connectivity, but can connect to Ad Hoc WiFi devices, such as an iPOD Touch.

By using this will I be charged by my phone carrier?:

Generally, this will incur the same charges as using the Internet on your phone. If you have an unlimited data plan, you should be fine. You are responsible for any charges you may incur due to lack of sufficient testing.

Can secure my WiFi connection ?

Sure, when setting up your Ad Hoc connection just enable an encryption method (such as WEP or WPA). Make sure the encryption method you choose is supported on both your Windows Mobile and client device.

Which devices support Ad Hoc networks?

Almost every device that supports normal Wifi networks, including the Sony PSP, Apple iPhone, and Apple iPod Touch.

I have a SmartPhone, how do I set my IP Address?

I don't have a SmartPhone, but luckily PocketPC Expert Menneisyss does, and has found a solution. Since I don't have a SmartPhone I'm going to plagiarize his solution for you here:

Download/install the IP profile Manager CAB file HERE (mirrored it HERE), which makes it possible to fill in the IP addresses on MS Smartphone (Windows Mobile Standard) devices as well. That is, with this tool, you can use MS Smartphone models having Wi-Fi support like the HTC Dash / s620 and Vox / s710. A poster reported success with the HTC Dash / s620. With the Vox, I haven’t managed to make internet sharing work, but you may have better luck.

After installing and starting the application, you’ll need to select your WiFi networking device (as can be seen in the following screenshot, it’s "TNETW12511" on the HTC Vox; if your model has the default TIACXWLN1, then, no such dialog will be presented):

Pic

You'll then need to select Options / Add Profile; there, just fill in the two numbers (IP:192.168.0.9 / Subnet Mask:255.255.255.0), making sure you also give the profile a name so that it is saved and becomes selectable:

Pic

Then you can select the new profile:

Pic

And restart the device as prompted:

Pic

After restart, follow the exact same procedure as on the Pocket PC.