Saturday, June 12, 2010

Connect two laptops in wireless LAN without using access point

First of all, this works only with laptops using Windows 7.

The procedure listed here provides a method to establish wireless  LAN connectivity between two laptops running Windows 7. This LAN can be used for file sharing /multiplayer games/internet sharing if internet connection is available in one of the systems.
Connectivity between two systems without using access points such as a switch/router is called as "adhoc" connection.
In this setup,one system acts as the access point and the other system connects to the access point.
One thing to be noted is that one laptop can act as an access point,in the mean time be connected to another access point.The advantage is that this laptop can act as a bridge between two networks.

Step 1: First we setup one laptop as access point
Open Control panel->Network and sharing center
Click on "Setup a new connection or network"

Step 2:  Scroll down on the dialog box and Select "Setup a  wireless ad hoc (computer-to-computer) network.Then click "Next".

Step 3: In the next window,provide a name for the network and a security key for the network

Then click "Next",if required click on "enable Internet connection sharing" in the next window.
Click "Close" to finish the setup.

Step 4: Now,for laptop-laptop or system-system connections, the IP address of the systems need to be setup accordingly. For normal LAN settings,we use 192.168.1.x addressing, but for adhoc connections,we have to use 192.168.0.x addressing as shown below.

For setting up the IP address,again goto Control panel->Network and sharing center.
Click on the "Change Adapter Settings" link on the left panel.

Step 5: Right click on your wireless network connection and select "Properties".Default name for the wireless adapter will be "Wireless Network Connection".
Select "Internet Protocol Version 4" and click on the "Configure" button.

Step 6:  Fill the "IP address"and "Subnet mask" fields as below and then click "OK" to save the settings.

Now the access point is setup successfully.

Step 7: Connect the other laptop to the newly setup access point by using the usual procedure.(searching for wifi and connecting).
Then setup the IP address of this laptop to the 192.168.0.x format.

Now both laptops are in LAN.To play multiplayer games, add exceptions in firewall for the game executables or turn of the windows firewall temporarily.
For file sharing,the laptops can be accessed by their IP addresses or through the Network sharing center.
Internet connection sharing works by default.


  1. Anonymous2:21 PM

    Will it work well in diff OS such as Win7 and WinXP?and if so how to connect from XP to tht adhoc network? plz reply soon..

  2. Viks_mash2:35 PM

    How to connect Win7 as access point and WinXP In LAN?

  3. @Anonymous, @Viks_mash, You can connect Windows XP to Windows 7, provided you create the connection in Windows 7 and connect from Windows XP.


    well done bharath..............Jay hind...It is very useful to gives some awareness when they start to read...I am really proud to be your friend.....
    great bharath..... ur work is wonderful ......definitely u r Rock..
    plz teach some technical subject in practical manner & what r the approach to be followed to proceed for project environment & also language C,C++,java,.NET. plz make some User interface environment that gives curiosity .
    surely one day u will be recognized by all.

    All the best for everything...........................My dear friend bharath...

  5. shariq7:15 AM

    well done bro. i have a question to u. please send the procedure to use my broadband connection as wifi connection. please help me bro. my email

  6. Anonymous2:06 PM

    but am using windows xp for primary laptop which is connected to LAN and windows7 for the secondary laptop for which i want to connect internet by using the connection connected to the primary one or to share the network for both laptops. can u please help me??????

  7. Anonymous9:18 AM

    Thanks mate! it has been very helpful.

  8. Anonymous5:47 PM

    thanx bro...

  9. Hi ,
    I am using windows 8, how to create or enable AD-HOC setting ,could anyone explain about this.

    1. Renga nathan, now there is a software called "Connectify" available freely which you can use to create a hotspot without using above procedure.