Figured out that you have to change all the URLs to the external URL of the sharepoint webapp, the SQL reporting server and then works good. I used this as reference ->
http://tjopsta.net/2010/04/16/how-to-change-team-foundation-server-2010-urls-for-use-externally/#comment-44