Provide a logical name instead of local host

I need to provide a logical name (sitename ) instead of localhost for my application running on my local PC.
Like from
Who is Participating?
shalomcConnect With a Mentor CTOCommented:
to use the name only in your PC, in the hosts file, bind the name you want to the address       localhost, yourname

do you also need to let others use your application while in development?
If yes, then you need a permanent IP address for your PC, and to assign the name to your IP in the DNS you use.
David Johnson, CD, MVPConnect With a Mentor OwnerCommented:
use your machines computername, right click on my computer, go to properties, or modify your c:\windows\system32\drivers\etc\hosts file and put in any name you want
RockingAuthor Commented:
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.