networks//LAN

A LAN (local area network) is the network that connects the devices on the same WiFi or router, with addresses such as 192.168.x.x. The host's LAN IP, Docker's virtual network and localhost are three parallel, isolated layers.


A LAN (local area network) is the network that connects the devices on the same WiFi or router, with addresses such as 192.168.x.x. The host's LAN IP, Docker's virtual network and localhost are three parallel, isolated layers.

Communication between layers requires explicit bridges: -p between Docker and the host, port forwarding between the LAN and the internet. The LAN's own exit is its gateway (192.168.1.1), the first hop to reach anything outside. Letting a friend reach a local Besu node crosses every one of them:

1Router port forwarding2Public IP3Host4Docker port map5Container