To access servlet in a localmachine i have to type the url as http:\\ip address:port no\servletdir\servlet name.rather specifing the above thing i have to give a domain name for a servlet which will ask for a user authentication.