'Jenkins Master and slave communication and slave went offline with below error

I have issue on Jenkins master and slave communication. I have Jenkins master on Linux and Jenkins slave is created on Windows10 and both are connected through .bat file configuration, Slave is going offline with below error:

connection was broken : java.nio.channels.ClosedChannelException at.org.jenkinsci.remoting.protocol.NetworkLayer.onRecvClosed(NetworkLayer.java:154)



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source