manoj,
You dont need WAMPServer on both machines, just the one that you want to be the server.
So on the server machine do this:
Edit httpd.conf ( using the wampmanager menus )
Find this part of the file
# onlineoffline tag - don't remove
Order Deny,Allow
Deny from all
Allow from 127.0.0.1
Allow from ::1
Allow from localhost
</Directory>
And change to
# onlineoffline tag - don't remove
Require local
</Directory>
# Setup security for my site
<Directory "d:/wamp/www/mysite">
Options Indexes FollowSymLinks
AllowOverride All
# Any other requirements your site may have
Require local
# Allow access from anybody on my subnet
Require ip 192.168.21
# Or alternatively just the one ip ( dont use both these!!!!
Require ip 192.168.21.187
<Directory