In a networked computing environment including a local area network containing one or more host computers, wherein a first IP address is generated by one of the host computers and a second IP address is received by the host computer on the local area network from an IP address server, a method for determining which IP address to use when a sending device in the local area network communicates with a destination device, depending on the location of the destination device, wherein different communication protocols may be implemented based on the location of the destination device, the method comprising the following:
- an act of automatically generating an IP address;
- an act of receiving an IP address from an IP address server;
- and
- an act of determining whether the network portion of a source IP address matches the network portion of a destination IP address;
- an act of using the automatically generated IP address if the network portion of the source IP address matches the network portion of the destination IP address;
- and
- an act of using the assigned IP address if the network portion of the source IP address does not match the network portion of the destination IP address.