Not sure if Jenkins config or version change. I use Jenkins v2.190.1 (deb). I need to config in “Configure Global Security” => “Agents
TCP port for inbound agents” => Fixed a port like 8081, and change the URL to http://<your_ip_address>:8081 so that it works.