hosts file

A hosts file is used to map DNS queries locally on your computer, instead of allowing your ISP to do so.

Your hosts file is in a different location depending upon your operating system.

Windows XP = /windows/system32/drivers/etc
Windows 2K = /winnt/system32/drivers/etc
Win 98ME = /windows

In the hosts file you need to edit the last line in the file to look like:

123.123.123.123 L2authd.lineage2.com

Enter the server IP where the 123.123.123.123 is.

If your are using the PTS client (Public Test Server) you need to replace L2authd.lineage2.com with L2testauthd.lineage2.com

You need to use the lan IP or 127.0.0.1 if you play on the server. Players need to use your wan IP to play.

This is a copy of a hosts file:


http://www.microsoft.com/technet/images/prodtechnol/isa/2004/maintain/wildcard/wildca27.gif


All entries in a hosts file must be in the format of:

ipaddress hostname

For example:

192.168.1.1 L2authd.lineage2.com

Notice that you must have a whitespace between the IP address and the hostname. Also keep in mind that the hostname can not contain any symbols like /,http://, etc.

The IP address must be numbers and the hostname must be a name.

As a last note, you can use the # symbol to make comments. Any line that starts with the # symbol will not be parsed by the operating system. You can therefore use this # symbol to make comments.

Troubleshooting the hosts file

NOTE: If you have MSN messenger installed check for file called hosts.msn and if exists, edit this one instead of default Windows host file.

If you have a problem connecting to the server ( account and password do not match ) Try this:

Troubleshooting the Hosts method (Live client, for PTS client substitute L2testauthd.lineage2.com for L2authd.lineage2.com, below)

1) Make sure your spelling and Capitalization is correct. Use only letters and numbers for your username and password. If you still get the error continue on to 2.

2) In a command prompt type "ping L2authd.lineage2.com" If you see "Pinging L2authd.lineage2.com [206.127.151.66] with 32 bytes of data:" then you are connecting to NCSoft, continue on to 2a. If you see "Pinging L2authd.lineage2.com [Server_IP] with 32 bytes of data:" then you are connecting to your server, skip to 3.

2a) Check that your "hosts" file contains a line with "Server_IP L2authd.lineage2.com" and only one instance of "L2authd.lineage2.com". Also check that you have not accidentally created a "hosts.txt", it should be an extensionless "hosts" file. Try to connect, if you still get the error, continue on to 2b.

2b) (Windows XP only) *NOTE: As this problem is usually caused by spyware "hi-jacking" your "hosts" file, it is good idea to run spyware removal software before making this change to avoid the spyware undoing your changes. Open Regedit and open the following key "HKEY_LOCAL_MACHINE/SYSTEM/Current/ControlSet/Services/Tcpip/Parameters". Check that "DataBasePath" contains the following data "%SystemRoot%/System32/drivers/etc", if it does not, change it to the aforementioned data. Try to connect, if you still get the error, continue on to 2c.

2c) (Windows XP only) In a command prompt type "ipconfig /flushdns" Try to connect, if you still get the error, continue on to 2d.

2d) (Windows XP only) Open "Control Panel", then "Administrative Tools" then "Services". Double click "DNS Client" click "Stop" and change "Startup type" to "Disabled". Try to connect, if you still get the error, continue on to 2e.

2e) In a command prompt type "ping L2authd.lineage2.com" again. If you see "Pinging L2authd.lineage2.com [Server_IP] with 32 bytes of data:" then you are connecting to Your server, continue on to 3. If you see "Pinging L2authd.lineage2.com [206.127.151.66] with 32 bytes of data:" then you are still connecting to NCSoft, try setting up your "Hosts" file again.

3) Try to connect, if you still get the error set up the hosts file again.


WikiStart