go to Network Connections
then select broadband connection
then right click and select properties
then select advanced tab
share your connection
Before connect two computers > direct cable
give the ip 192.168.0.1 to main computer which is used modem
then create new connection in 2nd computer