hosts file in windows is located in the below location .
(C) >> Windows >> System32 >> drivers >> etc
hosts file is only editable with the id having Administration or anyone if the access is granted
hosts file on windows is mainly used to resolve the hostname with some IP .If you want the some host or full qualified name to be resolved to some ip then you can achieve it by adding the entry on the host file .
Generally on any of the OS platform initial resolution looks in the host file then it will check the under line configured DNS domain .
com.sun.xml.internal.ws.com.client.ClientTransportException: HTTP transport error: javax.net.ssl.SSLHandshakeException: java.security.cert.CertificateException: No subject alternative names present
On the latest JAVA if you us IP for endpoint calling then you will get error subject alternative name not found on the server certificate with IP . During such scenario just map the certificate common name to the IP in hosts file and update the end point on the application to call using the FQDN it will solve the communication issue.
“#” is used for commenting on the hosts file
This can be done on the unix flavored OS [ Linux/AIX/Ubau/Solaris…etc] by editing /etc/hosts file
Thank you for visiting the site !!!
if you would like to contribute some posts on this site or if you want to add some posts you can provide me the post in a word document with steps and screens to email@example.com . With in 3 days we will add the post in the site and publish . Will reply with you the link of the post .