Setting up an Ad Hoc WiFi connection on
your mobile device
Make sure your WiFi radio is on.
Go to Start->Settings->"Connections"
tab.
Select "Wi-Fi" applet.
On the "Wireless" tab, select "Add
New...".
Pic
Type any network name you would like for
your Ad Hoc network (eg. WMobileAdHoc)
Make sure the "This is a device-to-device
(ad-hoc) connection" option is checked.
Pic
Select the "Next" button.
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
Select the "Next" button.
Select "Finish" on the final screen.
Pic
Configuring a static IP address on your
WiFi device
Go to Start->Settings->"Connections"
tab.
Select the "Wi-Fi" applet.
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
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
OK the dialog.
Connecting to your Ad Hoc WiFi connection
on your mobile device
Make sure your WiFi radio is on.
Go to Start->Settings->"Connections"
tab.
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.
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 deviceSince 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
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).
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.
Create a shortcut to "intshrui.exe"
on your start menu for easy future access.
Connecting & Sharing the Internet via Wifi
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.
Make sure the WiFi radio is off.
Start the new "intshrui.exe" Internet
Sharing application.
Make sure "USB" is selected (NOT
Bluetooth PAN!)
Press the "Connect" button (left
softkey).
Turn the WiFi radio on.
Ignore the fact that the satus displays
"Check USB cable connection". This is
normal.
Pic
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 timeoutYou 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:
Make sure "Internet Sharing" is active and
connected, but the status message still says
"Check USB cable connection".
Pic
Go to Start->Settings->"Connections"
tab.
Select the "Wi-Fi" applet.
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
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
OK the dialog.
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:
Thanks for sharing your ideas and thoughts, i like your blog and bookmark this blog for further use thanks again…
Internet Connection Setup Melbourne
Post a Comment