Author Topic: The real direct connect  (Read 9954 times)

JipK

  • Captain Awesome
  • Developers
  • Dark Power
  • *
  • Posts: 1062
  • Drugs are bad, Hmkaay
The real direct connect
« on: October 26, 2008, 09:19:16 PM »
Just found this trick on another forum. It'll allow you instantly connect to PotM just by using a shortcut on your desktop or start bar.

1. Create a new shortcut anywhere it suits you (right click > new > shortcut)

2. Direct it to nwmain.exe

3. Once the shortcut is created, right click on it and open the properties.

4. Add " +connect 104.155.20.124:5121" where it says "target" (note the space in front of the "+")
Example: C:\NeverwinterNights\NWN\nwmain.exe +connect 104.155.20.124:5121

Voila, you'll be able to instantly connect to PotM using a shortcut.

DM's will be able to use it as well, though they'll have to add a little bit extra to the target they should add " +password [password]" and " -dmc" (this one makes you log in on the DM client)
Example: C:\NeverwinterNights\NWN\nwmain.exe -dmc +connect 84.238.20.74:5121 +password [password]

Hope any one will find this useful.
« Last Edit: June 01, 2015, 08:43:32 AM by Zarathustra217 »

Knas

  • Developers
  • Head DMs
  • Dark Power
  • ******
  • Posts: 8702
  • Worthless phony
Re: The real direct connect
« Reply #1 on: October 26, 2008, 11:24:11 PM »
This also serves as a walk around for those who have the missing menu graphic bug

Bato

  • Developers
  • Dark Lord
  • *
  • Posts: 679
Re: The real direct connect
« Reply #2 on: February 05, 2009, 06:48:06 PM »
Direct connecting like this reduces lag by alot because you bypass gamespy.
I use batchfiles to do this for me.
Lets me select from multiple servers.


If anyone dosn't know how to do this:
You open notepad, type in:

Code: [Select]
@echo off
cd C:\NeverwinterNights\NWN\
:redo
cls
echo Select a Server
echo 1. Server
echo 2. Another Server
echo 3. DM on this one server
set /p server= Server Number:
if %server% == 1 start nwmain.exe +connect ##.##.##.##:####
if %server% == 2 start nwmain.exe +connect ##.##.##.##:####
if %server% == 3 start nwmain.exe -dmc +connect ##.##.##.##:#### +password [password]
          if else goto :redo
exit

And save it as  WhateverYouWant.bat


An example of mine:
Code: [Select]
@echo off
cd C:\NeverwinterNights\NWN\
:redo
cls
echo Select a Server
echo 1. Arelith
echo 2. Badlands
echo 3. Ravenloft
set /p server= Server Number:
if %server% == 1 goto :arelith
if %server% == 2 start nwmain.exe +connect 24.17.33.154:5121
if %server% == 3  start nwmain.exe +connect 192.38.55.36:5123
if %server% == 11 start nwmain.exe +connect arelith.servegame.org:5124
if %server% == 12 start nwmain.exe +connect arelith.servegame.org:5125
          if else goto :redo
exit

:arelith
echo 1. Surface
echo 2. Underdark
set /p arelith= Server Number:
if %arelith% == 1 start nwmain.exe +connect arelith.servegame.org:5124
if %arelith% == 2 start nwmain.exe +connect arelith.servegame.org:5125
          if else goto :redo
exit

This ONLY works on Windows. Not sure how to do this on Linux or Mac. But I might look up how to do it on Linux sometime.

tzaeru

  • Guest
Re: The real direct connect
« Reply #3 on: May 10, 2009, 09:26:54 PM »
Interestingly the Linux binary of the nwmain executable seems to ignore all command line options, therefore making it a bit tricky to directly connect at start-up.  :roll:

*Eagerly waits for the day when software houses start to properly support Linux*

LeslieMS

  • Undead Slayer
  • ***
  • Posts: 107
  • Mercy is the light in the darkness...
Re: The real direct connect
« Reply #4 on: September 02, 2009, 02:07:10 AM »
Just found this trick on another forum. It'll allow you instantly connect to PotM just by using a shortcut on your desktop or start bar.

1. Create a new shortcut anywhere it suits you (right click > new > shortcut)

2. Direct it to nwmain.exe

3. Once the shortcut is created, right click on it and open the properties.

4. Add " +connect 192.38.55.36:5123" where it says "target" (note the space in front of the "+")
Example: C:\NeverwinterNights\NWN\nwmain.exe +connect 192.38.55.36:5123

Voila, you'll be able to instantly connect to PotM using a shortcut.

DM's will be able to use it as well, though they'll have to add a little bit extra to the target they should add " +password [password]" and " -dmc" (this one makes you log in on the DM client)
Example: C:\NeverwinterNights\NWN\nwmain.exe -dmc +connect 192.38.55.36:5123 +password [password]

Hope any one will find this useful.

The New IP address is as follows:
192.38.55.132:5123

Just for anyone that doesn't already know =)

Amon-Si

  • Inventor of the cat
  • Dark Power
  • ******
  • Posts: 2367
  • Freelance troublemaker
Re: The real direct connect
« Reply #5 on: September 03, 2009, 10:07:37 PM »
I'm having trouble with this, it keeps telling me my password is incorrect, but we're not using a password for direct connect, are we?

Budly

  • Dark Power
  • ******
  • Posts: 5948
Re: The real direct connect
« Reply #6 on: September 04, 2009, 11:48:14 AM »
Password?  :shock: Weird. The server isn't even passworded.

Kendric98

  • Dark Power
  • ******
  • Posts: 1679
  • Omnipotent Overlord of the Omniverse!
Re: The real direct connect
« Reply #7 on: September 04, 2009, 11:53:35 PM »
I'm having trouble with this, it keeps telling me my password is incorrect, but we're not using a password for direct connect, are we?
Its glitchy is it still doing it? I had trouble to but i was ok yesterday.

Samson/Tatyanna Costella

Amon-Si

  • Inventor of the cat
  • Dark Power
  • ******
  • Posts: 2367
  • Freelance troublemaker
Re: The real direct connect
« Reply #8 on: September 05, 2009, 02:25:09 AM »
Still telling me "Incorrect password" but I can direct connect through gamespy without issue. *shrugs*

Alundaio

  • New to the Mists
  • *
  • Posts: 12
Re: The real direct connect
« Reply #9 on: November 17, 2009, 01:28:46 AM »
I've created a Neverwinter Nights Launcher. http://nwvault.ign.com/View.php?view=Other.Detail&id=1431 It allows up to 5 Servers to be direct Connected to. Which has an
easy checkbox to enable DM mode. There are a few other features, like Log renaming and On-click URL banners.  Just read the description of the file for more information.

I've also included a Banner for Prisoners of the mist. Just type "Ravenloft.jpg" in the banner field to have it displayed. Pop in the URL for this site in the URL links in the Options tab
and you are ready to Rock N' Roll your way to PotM.

Have any problems or suggestions just give me a message.


Oh there is also a Direct Connect Batch file generator I have made recently too. But I've decided to make the Launcher instead.
« Last Edit: November 17, 2009, 01:30:40 AM by Alundaio »

benyc

  • New to the Mists
  • *
  • Posts: 36
Re: The real direct connect
« Reply #10 on: October 18, 2011, 06:05:35 AM »
Found this elsewhere, useful for making your login shortcut even snappyer so you dont have to wait for the master server authentication to fail since the master server did one

This will make the master server authentication fail straight away without the wait

Quote
Open Notepad as Administrator.

Open the file C:\Windows\System32\drivers\etc\hosts (To see it you may need to show all files).

Add the following entries:

0.0.0.0    nwn.master.gamespy.com
0.0.0.0    nwmaster.bioware.com

Save the file.

You should get an instant failure on login so you don't have to wait.

just did this myself now and all seems good, its a bit fiddly thanks to how windows administrator access works in win 7 - i found it easiest to copy the contents of the file into a new hosts.txt file then delete the .txt extension and replace the original hosts file.

if the master server ever comes back up again and you need to authenticate for whatever reason, id imagine you could revert by removing the two lines

aprogressivist

  • The Wayfarer Kinship
  • Dark Power
  • ******
  • Posts: 3964
Re: The real direct connect
« Reply #11 on: October 18, 2011, 06:38:24 AM »
Interestingly the Linux binary of the nwmain executable seems to ignore all command line options, therefore making it a bit tricky to directly connect at start-up.  :roll:

*Eagerly waits for the day when software houses start to properly support Linux*

Anyone knows if this is still true for Linux boxes? I guess I'll find out when I get home tonight...

benyc

  • New to the Mists
  • *
  • Posts: 36
Re: The real direct connect
« Reply #12 on: October 18, 2011, 07:15:53 AM »
couldnt get it to work when i ran nwn on my old pc

Wingfree

  • New to the Mists
  • *
  • Posts: 30
    • Dances of Dragons
Re: The real direct connect
« Reply #13 on: December 18, 2012, 11:04:10 AM »
why not just  multi-player/join lan/direct connect .

dark_majico

  • Dark Power
  • ******
  • Posts: 1544
Re: The real direct connect
« Reply #14 on: December 19, 2012, 06:19:24 AM »
Just to clarify what is the correct direct connect address? I was using the original as posted by JipK , then changed it too the alternative posted by LeslieMS but it would not connect.
Active:
Constance Hollows

Korvenus

  • New to the Mists
  • *
  • Posts: 2
Re: The real direct connect
« Reply #15 on: April 30, 2015, 12:13:28 AM »
Hey guys,

I've just tried setting this up and at first couldn't get it working, but I found out why.

There are two Exe files that start the game, make sure that the target is using the nwmain.exe and not nwn.exe.

nwn.exe is just a wrapper for the nwmain, as in... it starts with a launch menu where you can select a few options, before you hit "Play game" and actually start nwmain.exe

so your target should be:
C:\NeverwinterNights\NWN\nwmain.exe +connect 84.238.20.74:5121
Not:
C:\NeverwinterNights\NWN\nwn.exe +connect 84.238.20.74:5121