Attempting to join a LAN world while offline gives the message "Invalid signature for profile public key. Try restarting your game." This is the case even when the host of the LAN world is offline.
Nothing shows up in the log to indicate that the connection failed.
This behavior is not present in version 1.19.2.
I am not convinced that this is a duplicate. The description of this bug indicates that it was not present in 1.19.2, and the specific circumstances (LAN server, offline mode) are different than the other bug. Reopening.