Page 1 of 1

Eliminating excessive timeout wait (join multiplayer screen)

Posted: Wed Aug 31, 2011 12:45 am
by mining
For win, there's a replacement, see http://www.nsrealm.com/public/ns/viewto ... &t=1003673

While the master server is down, everyone is (unsurprisingly) irked by the long timeout. If you don't have premium modules or anything else that uses the bio auth server, blocking that in a way that returns a no connection error will remove that timeout.

Bypassing the long timeout is fairly easy:

For Win users (possibly mac as well? Don't know, try it and see, more likely to be related to linux method, which Lokey is still working on)

Find your hosts file.
Should be in %SystemRoot%\system32\drivers\etc\hosts

In general, navigating from your root directory (mine is C, yours might be some drive like J)
windows > system32 > drivers > etc > hosts (no extension)

If using Vista/Win7: Open notepad as an administrator. Copy the path in the address bar of windows explorer. Use the "open file" option of notepad, paste in the path, and open hosts.
Everyone else (XP): Open hosts with notepad.

Should look something like this:

Code: Select all

# Copyright (c) 1993-2009 Microsoft Corp.
#
# This is a sample HOSTS file used by Microsoft TCP/IP for Windows.
#
# This file contains the mappings of IP addresses to host names. 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

# localhost name resolution is handled within DNS itself.
#	127.0.0.1       localhost
#	::1                 localhost  
Add this line at the end of it:

Code: Select all

    0.0.0.0         nwmaster.bioware.com
Then save as "hosts" (no extension).

There, done, boots up NWN and try to log in, should be much faster.

Re: Eliminating excessive timeout wait

Posted: Wed Aug 31, 2011 11:05 pm
by Lokey
/etc/hosts in linux.

0.0.0.0 maps back to local host, so it won't immediately return can't reach host, which is what we want. An illegal address like 256... returns error immediately, just not the right one. Reserved dev ips (100.something) don't work for this either. More research needed (and what happens in lin is probably also similar for mac).

Ah, the sweet smell of success.

0.0.0.1 worked for me, it might for you. The trick is finding an address that will timeout immediately as opposed to spit out one of a number of network errors win doesn't distinguish between.

ping 0.0.0.1
connect: Invalid argument returns to shell immediately

As root:

Code: Select all

echo '0.0.0.1 nwmaster.bioware.com' >> /etc/hosts
(Return that text, append it to the file /etc/hosts.) Putting a # in front of that entry or removing it will remove the lockout on the bio auth server.

Note that the nwn2 master server domain is nw2master.bioware.com, and pretty sure the same method will work there.

Re: Eliminating excessive timeout wait

Posted: Thu Sep 01, 2011 2:58 am
by Lokey
Alright, asked the mac losers how to do this; file is /etc/hosts and it needs root perm to mess with like lin.

256.0.0.0 is worth trying, 0.0.0.0/1 didn't work. You need to flush dns after, and that's different on every mac version, so good luck.

Further word:

Code: Select all

sudo sh -c "echo '256.0.0.0 nwmaster.bioware.com' >> /etc/hosts"

Re: Eliminating excessive timeout wait

Posted: Thu Sep 01, 2011 11:12 pm
by DM_Sultan
Works like a charm. Thank you for this.

Sultan

Re: Eliminating excessive timeout wait (join multiplayer scr

Posted: Wed Jul 30, 2014 10:01 pm
by Lokey
Do the same for peerchat.gamespy.com would be a temp "fix" for problems that just cropped up (plug pulled on some ancient server somewhere recently). It doesn't fix the nick dupe nag screen, but it's been fixed by skywing for nwn2, virusman has the info to update nwncx.

I'll let you know when nwncx (thread at http://www.nsrealm.com/public/ns/viewto ... &t=1003673 ) updates.

Re: Eliminating excessive timeout wait (join multiplayer scr

Posted: Wed Oct 22, 2014 10:44 pm
by Lokey
virusman has an rc to fix the mp list. check the link above and don't forget to take that line out of your hosts file.