Neither of those logs contains the "DecoderExceptions (incorrect header check, invalid distance too far back, etc.)" error message?
The server does have a message saying you disconnected as you say.
And the client has a message saying JEI is responding to a disconnect event, but no error message.
The "DecoderException" error message says there is a problem with the decompression of the network packet.
One thing I notice is you have the following on the client:
but on the server it is
So it looks like the server is trying to use ipv6.
If you look at the changelog for forge 1.18.2
https://maven.minecraftforge.net/net/minecraftforge/forge/1.18.2-40.1.69/forge-1.18.2-40.1.69-changelog.txt
It says
So one option would be try the latest release of forge, 40.1.69 which has this change.
Another would be to configure the server to use ipv4 like the client?
-Djava.net.preferIPv4Stack=true
NOTE: I don't know if this really the cause of the DecoderException, it could be caused by one of the mods and the ip version is just a red herring. ๐