Explain the setup a little further...
Location of the 2 machines in respect to one another.
Cable modems, routers, switches involved etc...
Specs (OS) running on both machines.
etc.
If you have an extra NIC for each machine then put a crossover cable cable from one to the other and assign them IP Addresses in the same range with the same subnet. Leave the Gateway empty.