connect two computers using LAN windows xp and wondows 7

How to connect two computers using LAN ?

Step 1 .

For windows XP users :

Start ->CONTROL PANNEL ->Network Connections

see  Local Area Network icon and right click and select properties

go on  Internet protocol (TCP/IP) and click on properties button.

Set IP address for both the computers. 
Remember they must be unique for both of them.

eg if you choose "192.168.1.1" for your first computer

Then choose "192.168.1.5" for other computer.

Below the IP Address there is box called Subnet Mask,
put 255.255.255.0 in it and click ok.

Follow same steps for other computer


Windows 7 :

Start -->Control Panel -> Network and Internet-->Network and Sharing Centre



Click on Change Adapter Settings