STEP 0: Open a command-prompt with administrator privileges.
Click on Start menu, All Programs, Accessories, right-click on Command Prompt, select "Run as administrator". Type in:
STEP 1:Type this on cmd:
netsh wlan set hostednetwork mode=allow ssid=Test key=letmein9
This example creates an access-point with an SSID of "Test", with a WPA password of "letmein9".
STEP 2: Configure Internet Connection Sharing (ICS)
Open up the networking control panel. Select the interface that currently has Internet connection (like your Ethernet or normal wifi), enable "Sharing", and then select the special "hosted" interface.
STEP 3: Start it by typing this:
netsh wlan start hostednetwork
I haven't tested it on Windows XP but works perfectly on win7
And don't forgate to disable anti-virus network traffic filtering,otherwise there will be no send and receive.