I have two computers with two different ip addresses and subnet masks.
Computer1: ip address 10.57.x.x with subnet mask 255.255.255.252
Computer2: ip address 10.1.y.y with subnet mask 255.255.255.248, gateway 10.1.y.z
I need to write a C++ program in Computer1 which connects to Computer2 through an ethernet cross-over cable. What is the best way to do it?
Could it be possible to add another ip address 10.1.y.z in Computer 1 and pretend the gateway to communicate with Computer2? Any suggestions will be appreciated.