Set media server only if server index defined
Use external IP or configured host name for web services