Just to ask a general question

Do any of the major hosting providers replace any restrictions on making calls to external services/ports from virtual servers you have hosted with them ?

Back in the early days of shared web hosting and hosted servers before things became fluffy and white you may not for example connect to an SMTP server that was outside the hosting company. I think they did this to help prevent email relay spam

You may also be prevented from making http calls outside of your domain etc in case someone had hacked your site and wanted to siphon data off etc

In a modern connected world of web services etc do these kinds of practices still hold true ? are most TCP outgoing ports closed by default ?

eg from a DF webapp hosted on AWS can I call a webservice at someexternalcompany.com via port 80 and send an email via smtp.outsideofaws.com port 25/437 etc etc