Connect Jenkins Agent/Node with URL instead of Port communication


I want to connect one server as a Jenkins agent/node, but ports like SSH port(22), and JNLP port cannot be opened due to security reasons. So is there any other way to connect agents?

Like, if we create an URL that has JenkinsMasterIP:Port and connect with it. URL can be created, and there is communication happening with Jenkins URL from the agent.

Thanks in advance!

Kinda old post now, but should get you started. WebSocket

You can tell your agent to connect back to the controller over http

You can also connect out to agents (instead of in from agents) using the ssh plugin

1 Like

Thank you @halkeye - This solution worked.

Reference URL: