I assume that you have both computers connected to the same Router. The instructions to the Router may explain what to do.
You can go to the Control Panel - Network Connections and check the Properties of the network connection. In the Network Connection Properties dialog, select the TCP/IP item and click on the Properties button. Make sure that Obtain an IP address automatically is checked. If that does not work, you may have to specify an IP address manually.