What ports are used for VSTS/TFS Build/Release Agent?

Kevin Kraus picture Kevin Kraus · Dec 3, 2015 · Viewed 11.4k times · Source

Can someone tell me what ports are used for the new TFS 2015 build agent for communication with TFS on-prem and Azure DevOps (aka VSTS)?

Answer

Harshil Lodhi picture Harshil Lodhi · Dec 3, 2015

The TFS 2015 Build Agent i.e. Azure DevOps agent (formerly VSTS Agent) doesn't listen on any of the ports so no port has to be opened on the target machine.

It tries to connect to VSTS on HTTPS i.e port 443.

If you have a on prem installation, the port would be the one on which TFS is hosted which is generally 8080.

So you will need to allow outgoing connections to 443 or 8080 (default).