You are here: Home / NWN Linux Dedicated Server Running Maintaining and Updating

NWN Linux Dedicated Server Running Maintaining and Updating

Notes for running dedicated and persistent world Neverwinter Nights: Enhanced Edition linux dedicated server.

 While NeverWinter Nights itself is not open source, it was one of the few games written early on to be fully supported natively on Linux (as well as Windows and/or Mac OS).

Better yet, the Aurora Toolset lets you create server adventure modules that others can play.

One of my long-term ongoing opensource projects is The Brain Computer Interface Role-Playing Game (BCI RPG) at

In some of the early prototyping and developer/staff training phases, we used NeverWinter Nights to help us with the prototyping testing story development. We wanted something public domain, so we went with Shakespeare's "The Tempest", and recreated it. This module is available in our open source git repo under the same project.

When we're running this server, you can usually see it listed as a private (red color) server in the multiplayer server list as


 Notes on getting the Linux NWN Server up and Running

Upgrade latest NWN:EE server bundle from here:


Login to NWN server.

su  to root

back up /opt/nwn to nwn.bak.datestamp.tar.gz

tar -zcvf nwn.bak.20200102.tar.gz nwn



Su to nwnuser account (or similar).

cd to /opt/nwn



[A]ll to replace to all files.



cd bin/linux-x86/






Player Name Refused by Self-hosted Server

Find the nwnplayer.ini file

Add under [Profile] section:

Player Name=yourplayernamehere

 notice the space between player and name


Example Linux Nwserver Hosting Config Script

./nwserver-linux -module "Neverwinter Nights - Infinite Dungeons" -servername RPGR-hawkenix1 -load 4 -maxclients 20 -minlevel 1 -maxlevel 40 -pauseandplay 1 -pvp 0 -servervault 1 -elc 0 -ilr 0 -oneparty 1 -difficulty 4 -autosaveinterval 5 -playerpassword mypassword  -dmpassword mypassword -adminpassword mypassword -publicserver 1 -reloadwhenempty 1 -port 5558



Firewall rules:


lease make sure that the following ports are open:

    Ports 5120 through 5300
    Port 6500
    Port 27900
    Port 28900

In addition to opening the ports listed above, you may need to allow incoming connections on the port you are running your server on (5121 by default) and forward those connections to the computer running the server.

For our Project Ilmatar (Shakespeare's The Tempest) server, it specifically also needs port: 19600





Resources: (latest server version download)