Returns the server URL dynamically without needing to use site properties and without needing any configurations at all.
100% Plug and play.
I had to come up with this solution to avoid scenarios where developers would forget to set the site property for the server URL in each environment on a new deployment that would go in an email to the user.
Can be used (and it works) in BPTs, Timers, Server Actions... Anywhere you may need.
Does not work on multidomain configurations.