12/22/08

Setup for wmwifirouter; connecting ipod touch to windows mobile device's internet connection

From thread:
http://forum.xda-developers.com/showthread.php?t=341398














Setup Summary


  1. Setup an Ad Hoc WiFi connection on your
    mobile device


  2. Set a static IP address on your WiFi device
    of "192.168.0.1" with a subnetmask of
    "255.255.255.0".


  3. Setup an Ad Hoc WiFi connection on your
    client device


  4. Download/uncompress the contents of
    ishare_over_wifi_usb_edition_v0.2.zip
    to
    a folder on your mobile device (eg. \Program
    Files\WiFiShare).


  5. Copy the correct hacked "intshare.dll"
    into the same folder as you created in the
    above step (so it's in the same folder as
    "intshrui.exe"
    ).






















Setting up an Ad Hoc WiFi connection on
your mobile device



  1. Make sure your WiFi radio is on.


  2. Go to Start->Settings->"Connections"
    tab.


  3. Select "Wi-Fi" applet.


  4. On the "Wireless" tab, select "Add
    New..."
    .


    Pic



  5. Type any network name you would like for
    your Ad Hoc network (eg. WMobileAdHoc)


  6. Make sure the "This is a device-to-device
    (ad-hoc) connection"
    option is checked.


    Pic



  7. Select the "Next" button.


  8. On the "Configure Network Authentication"
    screen, select "Open" for the
    Authentication type, and "Disabled"
    for Data Encryption. For the purposes of
    testing, lets verify the connection works
    without encryption, if it does, you can
    modify your Ad Hoc connection properties
    later to enable the encryption mode of your
    choice.


    Pic



  9. Select the "Next" button.


  10. Select "Finish" on the final screen.


    Pic




Configuring a static IP address on your
WiFi device



  1. Go to Start->Settings->"Connections"
    tab.


  2. Select the "Wi-Fi" applet.


  3. On the "Network Adapters" tab, select
    your WiFi device (for the HTC Mogul this is
    the item listed as "IEEE 802.11b/g
    Compatible Wi-Fi Adapter"
    ).


    Pic



  4. On the "IP Address" tab, select the
    "Use specific IP address" radio
    button. For the IP address enter the value
    "192.168.0.9" with a Subnet mask of
    "255.255.255.0".


    Pic



  5. OK the dialog.




Connecting to your Ad Hoc WiFi connection
on your mobile device



  1. Make sure your WiFi radio is on.


  2. Go to Start->Settings->"Connections"
    tab.


  3. On the "Wireless" tab, to avoid
    automatically connecting to other
    infrastructure WiFi networks in the area
    make sure, under the "Network to access:"
    section, to select the "Only
    computer-to-computer"
    option.


  4. If you only have one Ad Hoc network defined,
    Windows Mobile should now attempt to
    automatically connect to it. If you have
    multiple Ad Hoc networks defined, or to
    manually connect to your Ad Hoc connection,
    in the list of the available connections,
    tap-and-hold the just added network, and
    select "Connect" from the context
    menu.


    Pic




Setting up/connecting the Ad Hoc WiFi
connection on your client device




Since the specific procedure on how to connect
to Ad Hoc networks greatly varies from device to
device (Windows XP/Vista/Sony PSP/MAC/etc...),
it's impractical to document each possible
combination. In general just fire up your client
and search for nearby networks, making sure
you're not only looking for access points, but
also peer-to-peer (Ad Hoc) networks. This
(looking for both types of network) is the
default with desktop Windows Wi-Fi clients,
other platforms might be needed to be manually
instructed to list available Ad Hoc connections.



Installing the hacked Internet Sharing
application



  1. From the attached zip file copy the files
    "intshrui.exe"
    , "ipnat.dll", and
    optionally "Share&KeepSharingViaUSB.mscr"
    to a new folder on your device (eg. \Program
    Files\WiFiShare).


  2. Copy the hacked "intshare.dll" for
    your WiFi device from the "hacked_dlls"
    folder in zip file, into the folder you
    created in the previous step. Read the FAQ
    question "Which WiFi radios have you
    included a hacked intshare.dll"
    below to
    figure out which hacked .dll you should use.


  3. Create a shortcut to "intshrui.exe"
    on your start menu for easy future access.




Connecting & Sharing the Internet via Wifi


  1. At this point you should have already setup
    your Ad Hoc WiFi connection, and set a
    static IP address for your WiFi device. If
    you haven't already, do so now.



  2. Make sure the WiFi radio is off.


  3. Start the new "intshrui.exe" Internet
    Sharing application.


  4. Make sure "USB" is selected (NOT
    Bluetooth PAN!)


  5. Press the "Connect" button (left
    softkey).


  6. Turn the WiFi radio on.


  7. Ignore the fact that the satus displays
    "Check USB cable connection"
    . This is
    normal.


    Pic



  8. At this point you can connect your client
    machine to your Ad Hoc network, and it
    should receive an IP address from the DHCP
    service running as part of the "Internet
    Sharing" application. You are now ready to
    enjoy the glories of the Internet!




Workaround for the 10 minute timeout



You may notice, at least on my device, that
"Internet Sharing", at exactly 10 minutes of
usage, disconnects from the Internet, while you
AdHoc WiFi stays on. This timeout is built into
"intshrui.exe". Remember in the previous
procedure how the status displayed as "Check
USB cable connection"
, the status line needs
to change to "Connected" for the timeout
not to occur. This is how:



  1. Make sure "Internet Sharing" is active and
    connected, but the status message still says
    "Check USB cable connection".


    Pic



  2. Go to Start->Settings->"Connections"
    tab.


  3. Select the "Wi-Fi" applet.


  4. On the "Network Adapters" tab, select
    your WiFi device (for the HTC Mogul this is
    the item listed as "IEEE 802.11b/g
    Compatible Wi-Fi Adapter"
    ).


    Pic



  5. At this point we need to change something
    about the IP configuration that won't
    matter/affect anything, such as the
    alternate WINS address. It needs to be
    different from the current configuration or
    else the settings won't apply, which is
    needed for this workaround. On the "Name
    Servers"
    tab, select the "Alt Wins"
    entry and enter an arbitrary, unused, IP
    address value such as "192.168.0.253".


    Pic



  6. OK the dialog.


  7. Go back to the "Internet Sharing"
    application and the status should now
    display as "Connected"! The timeout
    should no be disabled for this connection
    session.


    Pic




    I've tested this many times and have been on
    the Internet for more than 2 hours without a
    disconnection in this state! If you get
    disconnected for any other reason you will
    have to reapply the workaround again.
    Remember to change the IP address to a
    different value so that the change applies,
    alternating between "192.168.0.253"
    and "192.168.0.254" should work fine.
    It just needs to be different value from the
    immediate previous setting. I've tried many
    different things to get the status to change
    to "Connected" via other methods, this is
    the only one I so far found to work.




"Share&KeepSharingViaUSB.mscr" Mortscript




1 comment:

Anonymous said...

Thanks for sharing your ideas and thoughts, i like your blog and bookmark this blog for further use thanks again…

Internet Connection Setup Melbourne