When sending or receiving TCP packets, the local IP address (e.g., 192.168.1.x) is displayed as the source or destination. This address is altered by the router, which functions as a Network Address Translation (NAT) unit. NAT changes internal IP addresses to an external IP address for communication with the internet, allowing multiple devices to share a single external IP. The router can either assign external IPs to connected devices or maintain internal local IPs, depending on its configuration. In cases where a modem assigns external IPs, it acts as a bridge and does not modify packet IP information. Additionally, if a cable modem is disconnected from its service, it assigns local IPs, allowing the home network to operate as a LAN. The behavior of DSL modems in similar situations is less certain.