Thursday, July 26, 2007

WinXP : Creating a wireless home network to share internet

A lot of people complained that I was too pro Linux. Here is a nifty way to create a ad-hoc wireless network at home and share internet over it using WinXP.

System : WinXP Pro/HP Media Center Desktop (any laptop/desktop with wifi card will do)
Broadband : BSNL 2 MBps ADSL
Connection type : Internet connected via pppoE(our internet gateway via ethernet)
and a wireless LAN adapter

Other Devices on the network : Nokia N80, Hp tablet pc, HP centrino laptop with ubuntu/fc6


Rich DeMuro, Senior Editor at Cnet.com, shows you how to do in this nice video
Creating an ad-hoc wireless internet sharing network

As they say, videos are better than step-by-step howtos, do message me if the above doesn't work for you.


Happy surfing.

*Updated: I just realized that Rich missed out how to assign IPs in case of WinXP to the devices. Follow these steps -
1. Assign a static IP 192.168.0.1 subnet 255.255.255.0
to the host's Wireless interface
(Control Panel > Network Conn. > Wireless network Connection > Properties > Internet Protocol(TCP/IP) > Properties)

2.Once the ad-hoc network is up, in all the client devices assign the following in a similar way as above
static IP 192.168.0.x where range of x is (2, 254)
subnet 255.255.255.0
Gateway 192.168.0.1
DNS 192.168.0.1


***updated March 29/2008
A lot of folks found this hard to configure. I wasn't expecting that. The entire purpose was to make this tutorial dead easy. Here is the summary:

1. wireless interface on XP
ip address: 192.168.0.1
subnet mask: 255.255.255.0

2. Your other network ethernet interface on XP, do nothing..you obviously will get ip, dns etc automatically from your isp (assuming, this is what is connecting you to the internet)

3. Enable internet sharing (as shown in video or WinXp pro users, check here)

4.On N80:
Phone ip address: 192.168.0.3
subnet: 255.255.255.0
default gatway: 192.168.0.1
primary dns: 192.168.0.1

(note: how the N80 gw and dns is same as the ip of wireless interface)

Purpose: We don't have a wireless router but are connected to internet via some ethernet port. We have a wifi card on the system, and we want to create an ad-hoc wifi spot at home, connecting other wireless devices to the internt using the wifi port on the pc. Packets will be routed via this wifi interface to the LAN/ethernet that connects us to internet. phew..

If you own a nokia N80, instructions are here .
For WinXp pro users, check here for an easier alternative

14 comments:

Anonymous said...

no machcha my n80 cannot find the wirless =(

-nb

Anoj said...

haha it works dude. I hope you have the Nokia WLAN Wizard Tool installed. It can detect all nearby WLANs.

Is only the N80 not detecting or its same with other devices too?

Anonymous said...

my n80 connected to the network but it doesnt find intenet connection maybe because am using xp home edition ?? plz help

Anoj said...

Hi TTm, I assume you have followed all steps shown by Rich in the video. Make sure you have enabled internet sharing. Also make sure, you have configured all your ip addresses correctly.Now try pinging from your host to ur N80

ping 192.168.0.2 (assuming xx.2 is N80)

If you get a response, your are connected to the network correctly.
else, reconfigure your wireless hotspot settings again.

For internet to work, the internet sharing settings on the host and assigning the ip and dns correctly on your N80 is a must. (Check the examples i mention)

Do get back to me, if it still doesn't work.

Anonymous said...

thanx for answering i'll tell you what i have here:
am using the 3g mobile connect (huawei)to access the internet on my laptop i've done exactly what rich said in the tutorial and i made the connection to share the internet then i used n80 to search for connection i connected to the network but when i try to open the internet it says something like no gateway.. and i also tried to put in ips for the host and the clientbut it didnt work it shows the same problem as i said... am on win xp home.thnx

Anoj said...

WinXP home supports internet sharing.. More instrunctions on that: here

No gateway error comes when either your dns settings in your Nokia N80 hasn't been configured or if the internet sharing settings wasn't done properly.

You can drop me a mail if you still can't get it working

Anonymous said...

ok now its working wonderful u have helped me allot allot thanx... what i have done is that i started the network setup wizard ... and then i've done like the tutorial again. and now its working thanx again

Anonymous said...

i did all the manual and still no gateway, i tried to ping and it successfully ping but no internet :(
Note: i upgraded my N80 to the latest firmware v5 maybe this cause the problems ? i am not sure because i have test the wireless function through a wireless router and it work, but with the ad-hoc i got failure always

i have a question, in the wirless connection tcp do i have to type the real dns like 213.103.xxx.xxx ?

Please Advice

Anoj said...

Run the network setup wizard and click on sharing internet. Follow, rest of the instructions as given. No need assign dns to wireless interface on windows. The sharing does that automatically.
You do need to assign a static ip, gateway and dns on your nokia N80..
Gateway and dns both will be the ip of the wireless interface of your windows pc

Anonymous said...

ok here is my setting:

Internet Protocol (tcp) for the wirless Interface

Use the folling ip address:
ip address: 192.168.0.13
subnet mask: 255.255.255.0
default gateway: 192.168.0.1
preferred DNS server: 192.168.0.1

Internet Protocol (tcp) for normal adapter Interface

ip address: 192.168.1.4
subnet mask: 255.255.255.0
default gateway: 192.168.1.1

on my N80
Phone ip address: 192.168.0.13
subnet: 255.255.255.0
default gatway: 192.168.0.1
primary dns: 192.168.0.1


Pinging 192.168.0.13 with 32 bytes of data:

Reply from 192.168.0.13: bytes=32 time<1ms TTL=128
Reply from 192.168.0.13: bytes=32 time<1ms TTL=128
Reply from 192.168.0.13: bytes=32 time<1ms TTL=128

result: No Gatway :( did i miss something?

Anoj said...

Hi Amr

do this:
1. wireless interface on XP
ip address: 192.168.0.1
subnet mask: 255.255.255.0

2. your other network ethernet interface on XP, do nothing..you obviously will get ip, dns etc automatically from your isp

3. Enable internet sharing

4.On N80:
Phone ip address: 192.168.0.13
subnet: 255.255.255.0
default gatway: 192.168.0.1
primary dns: 192.168.0.1

(note: how the N80 gw and dns is same as the ip of wireless interface)

Now things should work. Internet sharing can also be done using the network setup wizard.

Anonymous said...

Anoj

Thanks Alot, it works =)

Anonymous said...

Hey Anoj,

I Swiched to Windows Vista, its sounds diffrent, it worked once with no setting but after a while it didnt work either,

any advice for Vista configuration?

Anoj said...

Hi Amr

I haven't had a chance to use Vista..But the basic principles are same.These might help you get started
1. Setting up ad-hoc network

2. Using ICS to share internet