SSMS was using a xp_cmdshell_proxy_account
for xp_cmdshell and I managed to solve the problem simply through proxy configuration in app.config of my console app:
<system.net>
<defaultProxy
enabled="false"
useDefaultCredentials="false"
/>
</system.net>