If both the laptop belongs to same network instead of wire what can be do we have one device in the market that you can use this , device known as SWITCH , typically if the two laptop that belong same network we have lots of way for the connectivity , we can use the cross cable ,
we can use HUB , we can use BRIDGE , we can use repeater lots of difference types of devices available in the market