title: tcpSlaveAgentListener not found on Jenkins server
body: <p>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:</p>
  
  <pre><code>$ 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
  </code></pre>
  
  <p>However, when trying to get to start a slave node, I get this error reported on the slave node:</p>
  
  <pre><code>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
  </code></pre>
  
  <p>I also get the 404 Not Found error when curling <a href="http://myjenkinsurl:7004/tcpSlaveAgentListener/" rel="noreferrer">http://myjenkinsurl:7004/tcpSlaveAgentListener/</a></p>
  
  <p>This is what my relevant section of Configure Global Security looks like:</p>
  
  <p><a href="https://i.stack.imgur.com/WYzJ2.png" rel="noreferrer"><img src="https://i.stack.imgur.com/WYzJ2.png" alt="Configure Global Security"></a></p>
  
  <p>I am getting this error since upgrading to Jenkins 2.62 and it was previously working with a similar configuration on Jenkins 2.19.</p>
  
  <p>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. </p>
  
  <p>How do I get the tcpSlaveAgentListener URL to function?</p>