I am using Identity Server 5.0.0 version of wso2.please consider that I am using a proxy server. From my client app while I trying to work on SSO, application server is redirecting to Identity Server, to an URL with the IP mentioned in carbon.xml for hostname element in carbon.xml with the context root as commonauth and default port number as 9443, irrespective of the SAML Identity Provider URL provided. We do not want to redirect to IP from hostname.carbon.xml and 9443 for commonauth context redirection.
Ex: when application redirected to Identity Server, it should redirect to https://192.168.23.18:9443/samlsso; whereas before redirecting to this URL another redirection with commonauth context root and port number 9443 is happening with the IP mentioned in carbon.xml, as https://100.64.122.212:9443/commonauth.