I am trying to connect to a Jenkins master instance from a slave. From a connectivity standpoint, everything looks good. I am able to curl the selected "TCP port for JNLP agent" as set in "Configure Global Security" in Jenkins from where I am starting the slave node:

$ curl http://myjenkinsurl:7004/ Jenkins-Agent-Protocols: CLI-connect, CLI2-connect, JNLP-connect, JNLP2-connect, JNLP4-connect, Ping Jenkins-Version: 2.62 Jenkins-Session: 77c90621 Client: 10.0.0.2 Server: 172.0.0.2

However, when trying to get to start a slave node, I get this error reported on the slave node:

INFO: Locating server among [http://myjenkinsurl:7004] May 25, 2017 12:22:12 PM hudson.remoting.jnlp.Main$CuiListener error SEVERE: http://myjenkinsurl:7004/tcpSlaveAgentListener/ is invalid: 404 Not Found

I also get the 404 Not Found error when curling http://myjenkinsurl:7004/tcpSlaveAgentListener/

This is what my relevant section of Configure Global Security looks like:

I am getting this error since upgrading to Jenkins 2.62 and it was previously working with a similar configuration on Jenkins 2.19.

Most of the similar queries I can find to this question do not have this additional port configured correctly, but the output I get from curling Jenkins on this set port, 7004 in my case, seems to indicate that this is not where the problem lies.

How do I get the tcpSlaveAgentListener URL to function?