Opening a world to LAN shows "This world is now open to LAN. The port number is [PORT]". Switching the LAN port from World Options... then prints "This world is no longer open to multiplayer" before printing the new LAN open message. This intermediate "no longer open to multiplayer" message is unnecessary when only changing the port.
Environment
Windows 11 Pro, Version 25H2 (OS Build 26200.9711), unmodified vanilla Minecraft.
Thank you for helping us improve Minecraft! We saved your files: