You have to tell us more about your setup and what you are trying to do.
You usually do not setup a static IP address, unless it is a network printer or NAS. Is the network a work environment on a Domain, or is this a Peer to Peer network or Home setup? Is your server a Domain Controller?
If a home or peer to peer network, the IP address is assigned by DHCP by the Modem and or the Router.
If setting a static IP address, then the subnet should be the same.