I need to use the host to build a URL with a different port.
For example, if the host is example.com, I need to generate a URL like http://example.com:8080/
I need it to be portable, so when I'm in my local enviroment it shows http://localhost:8080/ instead.
Any ideas?