Monday, 20 August 2012

Mappings of IP addresses to host names (Change localhost to some other name)


Operationg System: 
  • Windows XP
Steps
  • 1. Navigate to
C:\WINDOWS\system32\drivers\etc

Or
start->All Programs->Run-> type 'drivers'  (Without quotes)->etc
  • 2. Open the file host with a text editor and change
127.0.0.1       localhost
To
127.0.0.1       projectname


# host file contains the mappings of IP addresses (in our case 127.0.0.1) to
#host names (localhost). Each
# entry should be kept on an individual line. The IP address should
# be placed in the first column followed by the corresponding host name.
# The IP address and the host name should be separated by at least one
# space.
#
# Additionally, comments (such as these) may be inserted on individual
# lines or following the machine name denoted by a '#' symbol.
#
# For example:
#
#      102.54.94.97     rhino.acme.com          # source server
#       38.25.63.10     x.acme.com              # x client host

No comments:

Post a Comment

Related Posts Plugin for WordPress, Blogger...