make a crossover cable
connect both PCs
go to network setting ( both pcs)
adapter options
Internet properties
double click internet protocol V4
edit details
pc 1
IP - 192.168.1.10
subnet - 255.255.255.0
gateway - no need
pc - 2
IP - 192.168.1.11
subnet - 255.255.255.0
gateway - no need
Save...