yashsingh1/xdaforums huggingface dataset:
[Windows Mobile Development and Hacking General] TalynOne:
I wrote a couple of new keep sharing Mortscripts, that work with Chainfire's WMWifiRouter.exe (download at the bottom of this post).

To use these scripts 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

The first script (StartKeepSharingWiFiRouter.mscr):

The second script (StopKeepSharingWiFiRouter.mscr):

They are well commented, so it should be fairly easy to view, modify and understand by looking at them in a text editor.

You may ask, what the purpose of these scripts are if Chainfire's application already gets rid of the 10 minute timeout. Well, the 10 minute timeout is not the only way Internet Sharing may get disconnected. The way Internet Sharing works, is that if your data (GPRS/EDGE/UMTS/HSDPA/EV-DO, etc. cellular) drops/disconnects for any reason, such as you being in a flaky data area, so does Internet Sharing. Luickly "Internet Sharing" reconnects to your data connection, but you must press the "Connect" button first. This Mortscript, among other things, presses the "Connect" button for you on startup, and any time an "Internet Sharing" disconnect occurs, for any reason. The stop script, stops the start script, disconnects, and closes everything out for you.

To use install/use the scripts:

Uncompress the attached zip file to same location you have Chainfire's "WMWifiRouter.exe".

Optionally create a shortcut to both scripts on your start menu.menu

Make sure you have a valid AdHoc connection, setup and ready as explained in the main Tutorial.

If you have a hardware WiFi switch (like with the Mogul), make sure it's in the on position.

Start StartKeepSharingWiFiRouter.mscr to connect (It will do everything for you as described above)

Start StopKeepSharingWiFiRouter.mscr to stop the above script and disconnect/exit everything related to Internet Sharing.

If anyone uses these, let me know if they work OK for you.

-----------------------------

Chainfire,

Do you think you can add a feature later to, given an "SSID" by command line parameter, or config entry, sets the WiFi adapter to Ad Hoc mode and connect to the specified SSID? If you don't want to write this, I will try, but it would better if it was integrated into your app.

Here's some info that may help:

-------------------------------

http://www.velocityreviews.com/foru...or-wzcqueryinterface-and-wzcsetinterface.html

http://www.google.com/search?hl=en&safe=off&q=Ndis802_11IBSS+mobile&btnG=Search

http://blog.opennetcf.org/ctacke/binary/WiFiDiscovery.htm

http://www.opennetcf.org/forums/topic.asp?TOPIC_ID=2983

http://www.eggheadcafe.com/forumarchives/NETFrameworkCompactFramework/Jan2006/post25812502.asp

http://www.pcreview.co.uk/forums/thread-2610828.php

http://www.vbforums.com/archive/index.php/t-456449.html

You might need to take a snapshot of:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\WZCSVC\Parameters\Interfaces\TNETW12511
[Windows Mobile Development and Hacking General] jompao:
can't get it to work

Just installed this yesterday and I can get my laptop to connect to the adhoc wifi, but there is no data coming from the connection. Can't connect even to google.

What could be wrong? I have TyTN with wm6 and internetsharing worked fine over usb before installing this.

If I can't get this to work, how can I restore so I can connect with usb again?
[Windows Mobile Development and Hacking General] TalynOne:
Are you using Chainfire's or my original package? They are both independent of the original "Internet Sharing" app. Since they exist in their own folder, and have their own .exe copy of the "Internet Sharing" app. Your original should still be there, untouched, and usable for normal USB Internet Sharing connectivity.

Can you ping your TyTN's IP address from your laptop? Does your TyTN say you have a valid data connection active? What does the status line say in the "Internet Sharing" app?
[Windows Mobile Development and Hacking General] jompao:
internet sharing says check usb cable at status.

I have copied the wmwifirouter folder to my tytn and tun this software. It says waiting for connection, I go to internet sharing and click to connect.

In the wmwifirouter program it says rebind success

checking networkcard in wifi settings on tytn adhoc says connected.

on my laptop it says connected and packets are sent but 0 packets received.

I don't know if correct but pinging 192.168.1.1 is ok.

I restarted phone, turn wifi off and go to internet sharing to connect with usb cable, it connects but shows a warning triangle for the connection. Just get dns errors when trying to open webpages now, so internet sharing over usb cable does not work anymore.

thankful for any suggestion. writing this directly from tytn.
[Windows Mobile Development and Hacking General] TalynOne:
WMWifiRouter should be setting your ip to 192.168.0.1, not 192.168.1.1.

Soft reset your TyTn. Don't start "Internet Sharing". Start WMWifiRouter.exe, which should start Internet Sharing for you. Then click "Connect". If your status doesn't change to "Connected" in the "Internet Sharing" app, then something is awry.

As far as connecting by USB, because you installed these .exe into their own folder (and not \Windows) your original Internet Sharing shortcut/program should be unaffected.

If you can't get the original version working, try soft reseting your TyTN and rebooting your laptop and see if that helps.
[Windows Mobile Development and Hacking General] TalynOne:
Ok, I did some experimenting, to try to get your original USB Internet Sharing to work try this:

Go to Start->Settings->Connections->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

And try again.

I'm typing this while connected to the Original Internet Sharing via a USB cable right now using the above configuration.
[Windows Mobile Development and Hacking General] jompao:
Yes, now I'm back connection over usb cable. Before there was no information in the IP-adress but it was ticked to use a specific adress.

Thanks!
[Windows Mobile Development and Hacking General] TalynOne:
Awesome, I think I know what happened.

I'm guessing "Remote NDIS Host" started out with an IP of "192.168.0.1", but when my tutorial says to/WMWifiRouter sets the WiFi device to "192.168.0.1", Windows Mobile detects a conflict and blanks out the IP of the "Remote NDIS Host" device. Since your device is set to .2 now, you shouldn't see a problem again, even if you do run WMWifiRouter again.

A more permanent solution would probably be to have my Tutorial/WMWifiRouter set the IP to .3 or something in future versions.

Now the question becomes why WiFi routing did not work on your TyTn...

I'm wondering if the problem is with Chainfire's detection code or my .dll. If you have time can you try the procedure from my tutorial and see if you get a different result?
[Windows Mobile Development and Hacking General] jompao:
Well, I can not ping 192.168.0.1

I get now connected also in "Internet sharing" app. I've tried to turn off firewalls and antivirus but no difference.
[Windows Mobile Development and Hacking General] marctronixx:
jompao,

are you using the latest mortscripts? are they causing the trouble?

im referring to (StartKeepSharingWiFiRouter.mscr) and (StopKeepSharingWiFiRouter.mscr)

or are your issues not related to these scripts? just want to know before i install these scripts. everything is working nicely and i dont want to break anything.

cheers....
[Windows Mobile Development and Hacking General] jompao:
No I'm not using those scripts.
[Windows Mobile Development and Hacking General] marctronixx:
appreciate that...
[Windows Mobile Development and Hacking General] Chainfire:
Which workaround are we talking about here? :D

I guess I could do that, yeah.

That is awesome to know!

I guess some redesigning of WMWifiRouter is in order to fix this in the app itself. I know how to detect the data connection drop so that shouldn't really be an issue. I guess the 10 minute timeout hack does not have to be reapplied when this happens? Another question is, if this data connection drop happens, and you for example open PIE or Opera and initiate a connection that way, does that also work instead of 'pressing' connect in ICS? (I ask this because that is easier to do from WMWifiRouter).

I'll look into it.

Hmm when I started out with WMWifiRouter it set the IP to .239 to prevent stuff like this, but I put it back on .1 because I was having some issues (which ended up being totally unrelated). What exactly is the Remote NDIS interface used for anyways?

As for the wifi routing not working (as well as the other issues), is jompao sure that the wireless card on the desktop/laptop 's TCP/IP settings are set to dynamic? When you run ipconfig from the command line, what does it say for your wireless device if you are connected?

It would ofcourse be nice to know what device jompao is using.

I doubt the problem is my detection code though, as it just ask the device "what is the name of the WLAN device?" and uses that... Ofcourse it's always possible though.

-------------------------

Now let's get this straight, improvements that need to be made to WMWifiRouter are:

- Removal of unnecessary WLAN power cycling

- 'On-the-fly' intshare.dll hacking

- Detect and correct data disconnects

- Optinal SSID to connect to

- Change WLAN settings to use a different IP ( like .239 or .254 or whatever ), though some more testing should be done there.

And obviously, some more testing needs to be done with switching between WiFi and USB / BT routing.
[Windows Mobile Development and Hacking General] thierryb:
I have configured a AdHoc wifi on my pda (02 XDA Flame)

I have copied the last version (0.2) of WMWifiRouter

I have started WMWifiRouter but ICS is not started.

And WifiRouter stopped and closed.

If I start ICS before WMWifiRouter, WifiRouter wait until I click on connect

But after my adhoc network is not visible by my PC.

What may I have to control ?
[Windows Mobile Development and Hacking General] TalynOne:
The 10 minute timeout workaround (manual method or your automated method), so that the "Status" lined in the hacked "Internet Sharing" app says "Connected".

Cool, thanks!

Hmm, I don't think you should do this, it's fine, an an optional behavior some may want, through the Mortscript. If you do try to implement the Mortscript behavior, you should make it an option rather than the default behavior of WMWifiRouter. In some cases a person may not want the behavior the Mortscript implements. The 10 minute workaround hack has to be applied after EVERY Internet Sharing connection. ICS still has to "Connect" independent of your actual data connection, and if a data connection doesn't exist when "Internet Sharing" connects it makes a data connection for you. So initiating a data connection through another means wouldn't work/help.

Awesome, thanks!

I had similar problems when using an IP other than "192.168.0.1". Here's something we should try. Set your app to set the IP to "192.168.0.3". Then open the hacked .dll file in a hex editor, nearby the top three locations where the WiFi indentifier string exists, there's also a string that is "192.168.0.1" in all three locations, change every occurrence of this string so that the last octet is changed from "1" to "3". The reason to make to "3" instead of "239" is that we don't want to make it longer than one digit, to prevent possible .dll corruption.

The purpose of the "Remote NDIS interface" is as a USB ethernet adapter for regular USB cable Internet Sharing (for non hacked/original version of Internet Sharing).

He said he's using a TyTn.

Baring my comments, this looks right. Great job, and thanks for your efforts Chainfire!
[Windows Mobile Development and Hacking General] TalynOne:
Sounds like WMWifiRouter isn't installed correctly. Make sure to delete my version completely, if you have it installed. Uncompress the ENTIRE contents of WifiRouter to a folder of your choice on your mobile device. For example create a folder in the program files folder named "WifiRouter" in "\program files" (\program files\WifiRouter), and make sure ALL the files AND folders from Chainfire's .zip are inside that folder.

So the contents of that folder should look like this:

Then, after creating a valid Ad Hoc connection, and connecting to it as described in my tutorial, from that folder, run "WMWifiRouter.exe".

If that doesn't work, using a registry editor, can you identify and you report your WiFi Radio ID identifier as described in the tutorial?
[Windows Mobile Development and Hacking General] thierryb:
The reason is the name of my device:

CheetahSDN1
[Windows Mobile Development and Hacking General] Chainfire:
You'll have to explain your situation in more detail, as you are confusing the hell out of me :)
[Windows Mobile Development and Hacking General] jd254:
i emailed Nintendo:
[Windows Mobile Development and Hacking General] stevenewjersey:
I recently bought a Mogul. It spawned 11 other people at work to get one. Now there are about 6 others on top of that buying a Titam model phone. Everyone is bombarding me with questions. I am no pro. I am lucky to be a 3 out of 10 with these phones. I certainly am no good at making anything myself.

My point is for everyone I have tried to get to use this program(they all love the idea) It is to advanced. If there was an easy version that does the installs based on the Sprint and Verizon ppc 6800s I could push it out there. Of course I always link paypal donations for all the mods I use. Most people are pretty good about donating where I work. This program atm is just a tad to much work for most. We cant use our isp at work. They dont let you do jack on it. This program would liven up my office if I could only get it to the point in wich most anyone can operate it.

Everyone has a personal laptop at work with them. The problem is the owner of the company if he sees a physical connection from phone to PC he gets upset. He doesnt want people surfing the net on the job. Of course we all do and this program would unleash a great deal of freedom for my fellow slave laborers.

Thanks for all the hard work btw. This app rocks.
[Windows Mobile Development and Hacking General] Chainfire:
I understand what you mean, and I

am

working on this stuff. It's still a sub- version 1 program though, and I don't have the solutions to all the problems. I think we've come a very long way into making this (which started out as manual registry hacking) into a decent tool, and every release improves things.

As far as I know, there is no difficulty with the mogul aside from having to set the WiFi switch to ON before running WMWifiRouter, is there? (aside from some configuration stuff)

As for the vx6800, it is difficult because I do not have one myself, I know it does not have ICS. If there was someone who could really work with me, or had physical access to the device, I'm fairly sure I could get it to work without much issue.

You're always welcome to suggest ways to make things easier :) But keep in mind that what we are doing here is very sensitive, it has worked perfectly on my Kaiser since the start, other phones have problems, it is not easy to figure out what the problems are. Also keep in mind that I am doing this in my free time while I'm already a very busy person, and also work on KaiserTweak and the Kaiser video drivers. Aside from that, hardly anyone very donates (10 donations or so in over 100 000 downloads) - sure I expected that, it's not a requirement, but as you may understand, I like working on this project, but there are other priorities :)

For v0.82, I have already changed many things and made the default options what works for most people. I am also working on a setup wizard. This should all be working nicely for v1.0. Give it some time. In the meantime you could help out by letting me know where it goes wrong for your collegues and suggesting different ways to fix it :)
[Windows Mobile Development and Hacking General] marctronixx:
i have a mogul on sprint so if any of you guys need help you can always hit me up for info... ive been with this app since birth and it keeps getting better and better...
[Windows Mobile Development and Hacking General] gregoryx:
Yes, please.

I'm working with an i760 that I expect to have to restore to backup / default, so I don't mind futzing with it a bit.

I have yet to get ICS working with USB. It says it's working with BT-PAN... but I haven't tried to test it since I understand that has nothing to do with how WiFiRouter works.

I've got a zip with intshare.dll and IntShrUI.exe but it's still not working.

I'm thinking that the modem.zip that Verizonguy sent around (with USBModem.CAB in it) may be key to the next step, but I'm unsure.

Any input on getting devices which do NOT have ICS natively to work (without just using a cooked ROM) would be much appreciated.
[Windows Mobile Development and Hacking General] Chainfire:
Please run the EXE from the ZIP that is attached, on your device, and post back here the two files it generates. See if I can whip you guys up a package that installs ICS :)

EDIT: Would be best if you did it from a clean hard-reset device, not sure if you are willing to do that though :) Also tell me if you did that or not :)

EDIT#2: Yeah it does have something to do with WMWifiRouter. If ICS does not work, WMWifiRouter will not work either.
[Windows Mobile Development and Hacking General] Chainfire:
Heh, just found this on YouTube:

http://www.youtube.com/watch?v=VLTxO7SAkwc

It's an instructional video on WMWifiRouter. It ain't mine, but it's well done. Ofcourse I have some small errata for it:

- You do not have to do the IP configuration part (entering 192.168.0.9, which should have been .1, is not necessary)

- It does work on WM5 devices (the tablets mentioned earlier run WM5)

- You should be able to press the power button to turn the screen off and save some power

- Vista seems to connect automatically without setup, for XP users, you may have to add the network manually

All in all, it is a good instructional video though, kudos to whomever made it. I'll probably link it up from my own site soon. In a release or two I might even make my own.
[Windows Mobile Development and Hacking General] Chainfire:
v0.82 released

Ok people, here is v0.82. More things were planned for this release, but things just happened differently.

Changelog

- Added DHCP registry tweaks. Apparently, DHCP didn't work for everybody, I hope this will resolve that issue. IP addresses given out by DHCP start at .32 and run to .254, this leaves .2 to .31 to use as static addresses (no DHCP)

- Timeout tweaks added, hopefully the WiFi will now no longer disconnect during longer periods of no activity

- The ID of the network the phone is connected to is now displayed

- Small GUI adjustments

- Like every other release, timings have been adjusted again

Please let me know if all works as expected, especially for the DHCP and timeout!

I included the v0.81 changelog below, as it didn't get added to the first post. TalynOne is probably on vacation or something :)
[Windows Mobile Development and Hacking General] gregoryx:
With that offer? I'll pull it with and without a hard-reset. I'm running an SPB Backup now in case I want to restore. Now I need to research how to hard-reset this thing. Will post back shortly.

Okay, dump included. I pulled a full one and a bare one. The bare one is attached. oooo... I'm eager to see this working! :D
[Windows Mobile Development and Hacking General] thejipster:
wait, i thought in your instructions you indicated to set the tilt device to 192.168.0.9, then why are you pinging 192.168.0.1 from the laptop. I m a bit confused. <--- was on like the first few posts... maybe that should be updated to let people know that DHCP is working and it automatically sets the phone to 192.168.0.1
[Windows Mobile Development and Hacking General] thejipster:
what did u do to get it to work?

Can you explain what you had to do to get it working?
[Windows Mobile Development and Hacking General] Bouloama:
http://msmobiles.com/news.php/6999.html

Some information of this app on one of the bigger news sites ;)

Great i think
[Windows Mobile Development and Hacking General] Chainfire:
You haven't had to do that for a looooong time. If you look carefully at the first post you will see the instructions for WMWifiRouter are really short, most of it is for doing the whole thing MANUALLY. The only thing you need from that part is the setting up of the Ad-Hoc network. It seems many people think you also have to do the IP part, but you don't.

I would change the first post, but I am not the author of the first post, so I cannot edit it. Hopefully TalynOne will see to some clarification soon. Last I heard from him he was really busy, so it may be a couple of days (or more).
[Windows Mobile Development and Hacking General] Chainfire:
Heh, nice. I've been googling a bit, there are stories about it everywhere. Even on Microsoft personnel blog sites :D
[Windows Mobile Development and Hacking General] Chainfire:
- Extract the EXE and BIN files from the attached ZIP

- Copy the EXE and BIN files to your device

- Run the EXE

- Click "Patch"

- Wait 'til the log box says "Done"

- Exit the EXE

- Delete the EXE and BIN files from your phone (don't need them again)

- Restart device

- See if you can get ICS ( \Windows\IntShrui.exe ) to work through USB, and try WMWifiRouter :)

- Report back here

If this works, I'll see about rolling it into a CAB (gawd knows how that works ;))
[Windows Mobile Development and Hacking General] Rongara:
Just installed this nice piece of software on my HTC Touch Cruise, but it didn't work (v 0.82)

Now my GPRS/3G-connection doesn't work anymore and I can't activte WiFi, not even via the Comm manager. Tried it already with several softresets and removed battery, but the issue persists :(

Anyone some idea how to fix this? If possible I'd like to avoide a hardreset...
[Windows Mobile Development and Hacking General] Chainfire:
Try running WMWifiRouter and do a "Crash Cleanup", exit, and softreset your device.

If that doesn't help try changing the following registry keys to 2 and softrest:

HKLM\System\CurrentControlSet\Control\Power\State\Suspend\{98C5250D-C29A-4985-AE5F-AFE5367E5006}

HKLM\System\CurrentControlSet\Control\Power\State\Resuming\{98C5250D-C29A-4985-AE5F-AFE5367E5006}

HKLM\System\CurrentControlSet\Control\Power\State\Unattended\{98C5250D-C29A-4985-AE5F-AFE5367E5006}
[Windows Mobile Development and Hacking General] Rongara:
Sorry, I forgot to mention: Already tried that. Tried it again and situation hasn't changed: WiFi can't be started and 3G only gives a popup with an error and advices me to check connectivity settings.

I’m using a localized version, so no English ROM, but that won’t be the reason!?
[Windows Mobile Development and Hacking General] Chainfire:
Cant imagine that is the reason. I've walked through the source and I can see there may be an issue with WiFi (though not turning on at all seems weird to me) but I can't find anything that relates to 3G at all...

I'm afraid you're going to have to hard-reset :(

(daily backups are your friend!)
[Windows Mobile Development and Hacking General] Rongara:
Stopped that a few weeks ago with my old device as I never needed the backups ;)

Well, I checked the registy keys and changed them, but Wlan still stays off and 3G doesn't work.

But thanks for trying it - I'll check outWMWifiRouter again later, it's really a cool software :cool:
[Windows Mobile Development and Hacking General] Chainfire:
WAIT... don't do the hard-reset! Hope you didn't yet :)

Meh, this seems to be a bad issue with v0.82 - I have disabled the download until I figure this out.
[Windows Mobile Development and Hacking General] Rongara:
Thanks for that post - no, I didn't perform the hardreset yet! Checked all connections till now as I thought that somehow the tool could have screwed up something there. But everything is ok.

If you have lokated the issue and need someone to check a fixed version sent me a pm, my Touch Cruise is already disordered ;)