I'm facing a weird issue when I launch Jenkins as Windows service in my client VM.
1) I have launched Jenkins as Windows service in my client side master machine (a Windows VM) and configured my local machine as a slave and I'm unable to establish the connection between master and slave. I'm getting the following error:
"java.lang.Exception: The server rejected the connection: None of the protocols were accepted"
Both master and slave are in same network (client's network, connected slave using VPN).
Client Master machine's domain name ABC
Local machine domain name xyz
2) I have stopped the Jenkins as Windows service and launched again through command prompt using
"java -jar jenkins.war"
now I'm able to establish connection between master and slave without any issues.
3) Now I have launched Jenkins as Windows service in my **local machine as master and one of the local machine as slave, and successfully established the connection between master and slave.
What exactly is the reason for not establishing the connection between master and slave using point (1)?