While connected to a Wi-Fi network that lacks Internet access, the ‘Visible over LAN’ toggle under the world settings turns off while on the loading screen of each world. After the world loads, this can be seen in settings where this toggle is now off. This prevents the world from being hosted over LAN.
Edit: the toggles are called "Visible to LAN players" and "multiplayer game" they are both on before loading the world and after loading the world the "multiplayer game" toggle is off.
While connected to a Wi-Fi network that lacks Internet access, the ‘Visible over LAN’ toggle under the world settings turns off while on the loading screen of each world. After the world loads, this can be seen in settings where this toggle is now off. This prevents the world from being hosted over LAN.
Edit: the toggles are called "Visible to LAN players" and "multiplayer game" they are both on before loading the world and after loading the world the "multiplayer game" toggle is off.