Visual Studio installation in the Sharepoint 2016 multiple server farm

I have a local Sharepoint 2016 environment in Multi Server Farm. I want to create custom solutions using Visual Studio 2015 and Infopath. Can someone tell me which server Visual Studio should install on, ie Infopath. on the front-end server or application server or both?

Thanks in advance for your reply.