This should be what you need to do
But usually those services are using shared IP (at least in free and low tiers). This make you vulnerable in terms of your deliver-ability, as you can often be on blacklists (not you, the IP) and it is not your mistake. If you want dedicated IP, than you need to buy higher tier , than is usually better to buy some VPS (around 8€ at least 8G RAM is viable) and run your server this way.