Hm so you want to redirect the requests coming with an IP in the hostname: IP to the corresponding hostname: name, correct?
Yer sir. If the user tries to access the web application URL with IP address on providing the IP address in web browser and clicking on should be redirected to HOSTNAME based URL.
should be redirected to
Srinivasa Rao Ammina.